Method |
Description |
|
_compact_exploded_words ( array $matches ) : string |
Compact Exploded Words |
|
_decode_entity ( array $match ) : string |
HTML Entity Decode Callback |
|
_do ( string $str ) : mixed |
|
|
_do_never_allowed ( string $str ) : string |
Do Never Allowed |
|
_do_never_allowed_afterwards ( string $str ) : string |
Do Never Allowed Afterwards |
|
_entity_decode ( $str ) : string |
|
|
_filter_attributes ( string $str ) : string |
Filter Attributes |
|
_initNeverAllowedStr ( ) |
initialize _initNeverAllowedStr |
|
_js_img_removal ( array $match ) : string |
JS Image Removal |
|
_js_link_removal ( array $match ) : string |
JS Link Removal |
|
_js_removal ( array $match, string $search ) : string |
JS Removal |
|
_sanitize_naughty_html ( array $matches ) : string |
Sanitize Naughty HTML |
|
compact_exploded_javascript ( string $str ) : string |
Compact any exploded words. |
|
decode_string ( string $str ) : string |
decode the html-tags via "UTF8::html_entity_decode()" or the string via "UTF8::urldecode()" |
|
make_php_tags_safe ( string $str ) : string |
Makes PHP tags safe. |
|
remove_disallowed_javascript ( string $str ) : string |
Remove disallowed Javascript in links or img tags
We used to do some version comparisons and use of stripos(),
but it is dog slow compared to these simplified non-capturing
preg_match(), especially if the pattern exists in the string |
|
remove_evil_attributes ( string $str ) : string |
Remove Evil HTML Attributes (like event handlers and style) |
|
sanitize_naughty_html ( string $str ) : string |
Sanitize naughty HTML elements |
|
sanitize_naughty_javascript ( string $str ) : string |
Sanitize naughty scripting elements |
|
xss_hash ( ) : string |
XSS Hash |
|