PHP 인터페이스 Bolt\Storage\Field\Sanitiser\SanitiserInterface

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
getAllowedAttributes ( ) : array Return the list of allowed attributes.
getAllowedTags ( ) : array Return the list of allowed HTML tags.
sanitise ( string $value, boolean $isWysiwyg = false ) : string Sanitise HTML, by allowing only white-listed tags and attributes.
setAllowedAttributes ( array $allowedAttributes ) : Bolt\Storage\Field\Sanitiser\SanitiserInterface Override the allowed attributes.
setAllowedTags ( array $allowedTags ) : Bolt\Storage\Field\Sanitiser\SanitiserInterface Override the allowed HTML tags.

메소드 상세

getAllowedAttributes() 공개 메소드

Return the list of allowed attributes.
public getAllowedAttributes ( ) : array
리턴 array

getAllowedTags() 공개 메소드

Return the list of allowed HTML tags.
public getAllowedTags ( ) : array
리턴 array

sanitise() 공개 메소드

Sanitise HTML, by allowing only white-listed tags and attributes.
public sanitise ( string $value, boolean $isWysiwyg = false ) : string
$value string A string value to sanitize.
$isWysiwyg boolean True if the field should allow HTML tags needed for WYSIWYG fields.
리턴 string

setAllowedAttributes() 공개 메소드

Override the allowed attributes.
public setAllowedAttributes ( array $allowedAttributes ) : Bolt\Storage\Field\Sanitiser\SanitiserInterface
$allowedAttributes array
리턴 Bolt\Storage\Field\Sanitiser\SanitiserInterface

setAllowedTags() 공개 메소드

Override the allowed HTML tags.
public setAllowedTags ( array $allowedTags ) : Bolt\Storage\Field\Sanitiser\SanitiserInterface
$allowedTags array
리턴 Bolt\Storage\Field\Sanitiser\SanitiserInterface