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