PHP Interface Bolt\Storage\Field\Sanitiser\SanitiserInterface

Author: Gawain Lynch ([email protected])
Afficher le fichier Open project: bolt/bolt

Méthodes publiques

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

Method Details

getAllowedAttributes() public méthode

Return the list of allowed attributes.
public getAllowedAttributes ( ) : array
Résultat array

getAllowedTags() public méthode

Return the list of allowed HTML tags.
public getAllowedTags ( ) : array
Résultat array

sanitise() public méthode

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.
Résultat string

setAllowedAttributes() public méthode

Override the allowed attributes.
public setAllowedAttributes ( array $allowedAttributes ) : Bolt\Storage\Field\Sanitiser\SanitiserInterface
$allowedAttributes array
Résultat Bolt\Storage\Field\Sanitiser\SanitiserInterface

setAllowedTags() public méthode

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