Property | Type | Description | |
---|---|---|---|
$_allowedAttributes | array | array of allowed attributes | |
$_allowedTags | array | array of allowed tags | |
$_forbiddenValues | array | array of forbidden values |
Method | Description | |
---|---|---|
sanitize ( string $html = null, boolean $filter = true ) : string | sanitize the html |
Method | Description | |
---|---|---|
_cleanDocument ( DOMDocument $doc ) : DOMDocument | clean the document | |
_createDocument ( string $html = null ) : DOMDocument | create the document | |
_stripAttributes ( object $node = null ) : object | strip the attributes | |
_stripTags ( object $node = null ) : object | strip the tags | |
_stripValues ( object $node = null ) : object | strip the values |
protected _cleanDocument ( DOMDocument $doc ) : DOMDocument | ||
$doc | DOMDocument | target document |
return | DOMDocument |
protected _createDocument ( string $html = null ) : DOMDocument | ||
$html | string | target html |
return | DOMDocument |
protected _stripAttributes ( object $node = null ) : object | ||
$node | object | target node |
return | object |
protected _stripTags ( object $node = null ) : object | ||
$node | object | target node |
return | object |
protected _stripValues ( object $node = null ) : object | ||
$node | object | target node |
return | object |
protected array $_allowedAttributes | ||
return | array |
protected array $_forbiddenValues | ||
return | array |