PHP 클래스 Redaxscript\Filter\Html

부터: 2.2.0
저자: Henry Ruhs
상속: implements Redaxscript\Filter\Filter
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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