TSRef - TypoScript Reference

5.1.18. HTMLparser_tags:

Property:

Data type:

Description:

overrideAttribs

string

If set, this string is preset as the attributes of the tag.

allowedAttribs

 

'0' (zero) = no attributes allowed, '[commalist of attributes]' = only allowed attributes. If blank/not set, all attributes are allowed.

fixAttrib.[attribute].set

string

Force the attribute value to this value.

fixAttrib.[attribute].unset

boolean

 If set, the attribute is unset.

fixAttrib.[attribute].default

string

If no attribute exists by this name, this value is set as default value (if this value is not blank)

fixAttrib.[attribute].always

boolean

If set, the attribute is always processed. Normally an attribute is processed only if it exists

fixAttrib.[attribute].trim

fixAttrib.[attribute].intval

fixAttrib.[attribute].upper

fixAttrib.[attribute].lower

boolean

If any of these keys are set, the value is passed through the respective PHP-functions.

fixAttrib.[attribute].range

[low],[high]

Setting integer range.

fixAttrib.[attribute].list

list of values, trimmed

Attribute value must be in this list. If not, the value is set to the first element.

fixAttrib.[attribute].removeIfFalse

boolean/"blank" string

If set, then the attribute is removed if it is "false". If this value is set to "blank" then the value must be a blank string (that means a "zero" value will not be removed)

fixAttrib.[attribute].removeIfEquals

string

If the attribute value matches the value set here, then it is removed.

fixAttrib.[attribute].casesensitiveComp

boolean

If set, the comparison in .removeIfEquals and .list will be case-sensitive. At this point, it's insensitive.

fixAttrib.[attribute].prefixLocalAnchors

integer

If the first char is a "#" character (anchor of fx. <a> tags) this will prefix either a relative or absolute path.

If the value is "1" you will get the absolute path (t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'))

If the value is "2" you will get the relative path (stripping of t3lib_div::getIndpEnv('TYPO3_SITE_URL'))

 

Example:

 

...fixAttrib.href.prefixLocalAnchors = 1

fixAttrib.[attribute].prefixRelPathWith

string

If the value of the attribute seems to be a relative URL (no scheme like "http" and no "/" as first char) then that value of this property will be prefixed the attribute.

 

Example:

 

...fixAttrib.src.prefixRelPathWith = http://192.168.230.3/typo3/32/dummy/

fixAttrib.[attribute].userFunc

function reference

User function for processing of the attribute.

 

Example:

 

...fixAttrib.href.userFunc = tx_realurl->test_urlProc

protect

boolean

If set, the tag <> is converted to &lt; and &gt;

remap

string

If set, the tagname is remapped to this tagname

rmTagIfNoAttrib

boolean

If set, then the tag is removed if no attributes happend to be there.

nesting

 

If set true, then this tag must have starting and ending tags in the correct order. Any tags not in this order will be discarded. Thus '</B><B><I></B></I></B>' will be converted to '<B><I></B></I>'.

Is the value "global" then true nesting in relation to other tags marked for "global" nesting control is preserved. This means that if <B> and <I> are set for global nesting then this string '</B><B><I></B></I></B>' is converted to '<B></B>'

[page:->HTMLparser_tags; tsref:->HTMLparser_tags]


Valid XHTML 1.0!