PHP Class Redaxscript\Filter\Html

Since: 2.2.0
Author: Henry Ruhs
Inheritance: implements Redaxscript\Filter\Filter
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство Type Description
$_allowedAttributes array array of allowed attributes
$_allowedTags array array of allowed tags
$_forbiddenValues array array of forbidden values

Méthodes publiques

Méthode Description
sanitize ( string $html = null, boolean $filter = true ) : string sanitize the html

Méthodes protégées

Méthode 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

Method Details

_cleanDocument() protected méthode

clean the document
Since: 2.6.0
protected _cleanDocument ( DOMDocument $doc ) : DOMDocument
$doc DOMDocument target document
Résultat DOMDocument

_createDocument() protected méthode

create the document
Since: 2.4.0
protected _createDocument ( string $html = null ) : DOMDocument
$html string target html
Résultat DOMDocument

_stripAttributes() protected méthode

strip the attributes
Since: 2.4.0
protected _stripAttributes ( object $node = null ) : object
$node object target node
Résultat object

_stripTags() protected méthode

strip the tags
Since: 2.4.0
protected _stripTags ( object $node = null ) : object
$node object target node
Résultat object

_stripValues() protected méthode

strip the values
Since: 2.6.0
protected _stripValues ( object $node = null ) : object
$node object target node
Résultat object

sanitize() public méthode

sanitize the html
Since: 2.4.0
public sanitize ( string $html = null, boolean $filter = true ) : string
$html string target html
$filter boolean optional filter nodes
Résultat string

Property Details

$_allowedAttributes protected_oe property

array of allowed attributes
protected array $_allowedAttributes
Résultat array

$_allowedTags protected_oe property

array of allowed tags
protected array $_allowedTags
Résultat array

$_forbiddenValues protected_oe property

array of forbidden values
protected array $_forbiddenValues
Résultat array