Method |
Description |
|
closeHtmlTag ( string $tag ) : string |
Return the HTML closing tag. |
|
isAllowed ( string $tag, array $attributes ) : boolean |
Check if the tag is allowed and is not a pixel tracker. |
|
isAllowedTag ( string $tag ) : boolean |
Check if a tag is on the whitelist. |
|
isPixelTracker ( string $tag, array $attributes ) : boolean |
Detect if an image tag is a pixel tracker. |
|
isSelfClosingTag ( string $tag ) : boolean |
Return true is the tag is self-closing. |
|
openHtmlTag ( string $tag, string $attributes = '' ) : string |
Return the HTML opening tag. |
|
removeBlacklistedTags ( string $data ) : string |
Remove script tags. |
|
removeEmptyTags ( string $data ) : string |
Remove empty tags. |
|
removeMultipleBreakTags ( string $data ) : string |
Replace
by only one. |
|
setWhitelistedTags ( array $values ) : Tag |
Set whitelisted tags adn attributes for each tag. |
|