TSref/HTMLparser
From TYPO3Wiki
| TSref/HTMLparser |
|
||||
TypoScript This page is document in progress.
[edit]
HTMLparser
| Property: | Data type: | Description: |
| allowTags | list of tags | Default allowed tags |
| tags.[tagname] | boolean/->HTMLparser_tags | Either set this property to 0 or 1 to allow or deny the tag. If you enter ->HTMLparser_tags properties, those will automatically overrule this option, thus it's not needed then.
[tagname] in lowercase. |
| localNesting | list of tags, must be among preserved tags
List of tags (among the already set tags), which will be forced to have the nesting-flag set to true | |
| globalNesting | (ibid) | List of tags (among the already set tags), which will be forced to have the nesting-flag set to “global” |
| rmTagIfNoAttrib | (ibid) | List of tags (among the already set tags), which will be forced to have the rmTagIfNoAttrib set to true |
| noAttrib | (ibid) | List of tags (among the already set tags), which will be forced to have the allowedAttribs value set to zero (which means, all attributes will be removed. |
| removeTags | (ibid) | List of tags (among the already set tags), which will be configured so they are surely removed. |
| keepNonMatchedTags | boolean / “protect” | If set (true=1), then all tags are kept regardless of tags present as keys in $tags-array.
If "protect", then the preserved tags have their <> converted to < and > Default is to REMOVE all tags, which are not specifically assigned to be allowed! So you might probably want to set this value! |
| htmlSpecialChars | -1 / 0 / 1 / 2 | This regards all content which is NOT tags:
“0” means “disabled” - nothing is done “1” means the content outside tags is htmlspecialchar()'ed (PHP-function which converts &”<> to &...;) “2” is the same as “1” but entities like “&” or “ê” are untouched. “-1” does the opposite of “1” - converts < to <, > to >, " to “ etc. |
| xhtml_cleaning | boolean | Cleans up the content for XHTML compliance. Still slightly experimental and supports only some clean up operations (like convertion tags and attributes to lower case). |
[tsref:(cObject).HTMLparser]
