PHP Class Bolt\Storage\Field\Sanitiser\Sanitiser

Author: Gawain Lynch ([email protected])
Inheritance: implements Bolt\Storage\Field\Sanitiser\SanitiserInterface
Show file Open project: bolt/bolt

Protected Properties

Property Type Description
$allowedAttributes array
$allowedTags array
$allowedWyswig array

Public Methods

Method Description
__construct ( array $allowedTags, array $allowedAttributes, array $allowedWyswig ) Constructor.
getAllowedAttributes ( )
getAllowedTags ( )
sanitise ( $value, $isWysiwyg = false )
setAllowedAttributes ( array $allowedAttributes )
setAllowedTags ( array $allowedTags )

Protected Methods

Method Description
getWyswigAllowedTags ( ) : array Return a list of allowed tags needed for WYSIWYG field types.
isWysiwygEnabled ( string $name ) : boolean Return a WYSIWYG configuration value.

Method Details

__construct() public method

Constructor.
public __construct ( array $allowedTags, array $allowedAttributes, array $allowedWyswig )
$allowedTags array
$allowedAttributes array
$allowedWyswig array

getAllowedAttributes() public method

getAllowedTags() public method

public getAllowedTags ( )

getWyswigAllowedTags() protected method

For HTML fields we want to override a few tags, e.g, it makes no sense to disallow