HTMLparser¶
Properties¶
tags.[tagname]¶
- tags¶
- Data type
boolean
/ string of HTMLparser_tags
Either set this property to
0
or1
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¶
- localNesting¶
- Data type
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¶
- globalNesting¶
- Data type
(ibid)
List of tags (among the already set tags), which will be forced to have the nesting-flag set to "global"
rmTagIfNoAttrib¶
- rmTagIfNoAttrib¶
- Data type
(ibid)
List of tags (among the already set tags), which will be forced to have the
rmTagIfNoAttrib
set to true
noAttrib¶
- noAttrib¶
- Data type
(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¶
- removeTags¶
- Data type
(ibid)
List of tags (among the already set tags), which will be configured so they are surely removed.
keepNonMatchedTags¶
- keepNonMatchedTags¶
- Data type
boolean
/ "protect"
If set (
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¶
- htmlSpecialChars¶
- Data type
-1 / 0 / 1 / 2
This regards all content which is not tags:
- -1
Does the opposite of "1". It converts
<
to<
,>
to>
,"
to"
etc.
- 0
Disabled - nothing is done.
- 1
The content outside tags is
htmlspecialchar()
'ed (PHP-function which converts&"<>
to&...;
).- 2
Same as "1", but entities like
&
orê
are untouched.