Utility class providing HTML sanityzer
package |
Framework |
---|---|
subpackage |
Utils |
__construct($p = array())
add_callback($tagName, $callback)
wash_style($style)
wash_attribs($node)
dumpHtml(\DOMNode $node, int $level = 20)
It output only allowed tags with allowed attributes and allowed inline styles
\DOMNode
HTML element
int
Recurrence level (safe initial value found empirically)
wash($html)
get_config($prop)
cleanup($html)
html_tag_callback($matches)
resolve_base($body)
fix_broken_lists(&$html)
explode_style($style)
html_elements :
ignore_elements :
html_attribs :
void_elements :
extlinks :
config :
handlers :
_html_elements :
_ignore_elements :
_void_elements :
_html_attribs :
max_nesting_level :