프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_allowedAttributes | array | array of allowed attributes | |
$_allowedTags | array | array of allowed tags | |
$_forbiddenValues | array | array of forbidden values |
메소드 | 설명 | |
---|---|---|
sanitize ( string $html = null, boolean $filter = true ) : string | sanitize the html |
메소드 | 설명 | |
---|---|---|
_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 |
리턴 | DOMDocument |
protected _createDocument ( string $html = null ) : DOMDocument | ||
$html | string | target html |
리턴 | DOMDocument |
protected _stripAttributes ( object $node = null ) : object | ||
$node | object | target node |
리턴 | object |
protected _stripTags ( object $node = null ) : object | ||
$node | object | target node |
리턴 | object |
protected _stripValues ( object $node = null ) : object | ||
$node | object | target node |
리턴 | object |
protected array $_allowedAttributes | ||
리턴 | array |