PHP Класс Redaxscript\Filter\Html

С версии: 2.2.0
Автор: Henry Ruhs
Наследование: implements Redaxscript\Filter\Filter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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

Описание методов

_cleanDocument() защищенный метод

clean the document
С версии: 2.6.0
protected _cleanDocument ( DOMDocument $doc ) : DOMDocument
$doc DOMDocument target document
Результат DOMDocument

_createDocument() защищенный метод

create the document
С версии: 2.4.0
protected _createDocument ( string $html = null ) : DOMDocument
$html string target html
Результат DOMDocument

_stripAttributes() защищенный метод

strip the attributes
С версии: 2.4.0
protected _stripAttributes ( object $node = null ) : object
$node object target node
Результат object

_stripTags() защищенный метод

strip the tags
С версии: 2.4.0
protected _stripTags ( object $node = null ) : object
$node object target node
Результат object

_stripValues() защищенный метод

strip the values
С версии: 2.6.0
protected _stripValues ( object $node = null ) : object
$node object target node
Результат object

sanitize() публичный метод

sanitize the html
С версии: 2.4.0
public sanitize ( string $html = null, boolean $filter = true ) : string
$html string target html
$filter boolean optional filter nodes
Результат string

Описание свойств

$_allowedAttributes защищенное свойство

array of allowed attributes
protected array $_allowedAttributes
Результат array

$_allowedTags защищенное свойство

array of allowed tags
protected array $_allowedTags
Результат array

$_forbiddenValues защищенное свойство

array of forbidden values
protected array $_forbiddenValues
Результат array