De:TSref/HTMLparser

From TYPO3Wiki

Jump to: navigation, search
TSref/HTMLparser
Translations info
An english page for every translation.
All pagenames in english.

  en       de   nl   fr   ja   zh  

TypoScript This page is document in progress.


HTMLparser

Eigenschaft Datentyp Kommentar
allowTags list of tags HTML-Tags die erlaubt sind. Mit "*" werden alle Tags erlaubt.
tags.[tagname] boolean/->HTMLparser_tags Ein bestimmter Tag kann zugelassen oder verboten werden. Wenn HTMLparser_tags gesetzt wird, dann wird diese Eigenschaft überflüssig und daher überschrieben.

Der tagname wird kleingeschrieben.

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 “&#234” 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]

Personal tools