Zend\Filter\StripTags
Synopsis
class StripTags
extends AbstractFilter
{
- // constants
- const UNIQUE_ID_PREFIX = '__Zend_Filter_StripTags__';
- // members
- protected array $tagsAllowed;
- protected array $attributesAllowed;
- // Inherited members from AbstractFilter
- protected array $options;
- // methods
- public void __construct()
- public array getTagsAllowed()
- public self setTagsAllowed()
- public array getAttributesAllowed()
- public self setAttributesAllowed()
- public string|mixed filter()
- protected string _filterTag()
- // Inherited methods from AbstractFilter
- public static bool hasPcreUnicodeSupport()
- public self setOptions()
- public array getOptions()
- public mixed __invoke()
- protected static bool isOptions()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
175+ | improve docblock descriptions |
Constants
Name | Value |
---|---|
UNIQUE_ID_PREFIX | '__Zend_Filter_StripTags__' |
Members
protected
- $attributesAllowed
—
array
Array of allowed attributes for all allowed tags - $options
—
array
Filter options
Methods
protected
- _filterTag() — Filters a single tag against the current option settings
public
- __construct() — Sets the filter options Allowed options are 'allowTags' => Tags which are allowed 'allowAttribs' => Attributes which are allowed 'allowComments' => Are comments allowed ?
- filter() — Defined by Zend\Filter\FilterInterface
- getAttributesAllowed() — Returns the attributesAllowed option
- getTagsAllowed() — Returns the tagsAllowed option
- setAttributesAllowed() — Sets the attributesAllowed option
- setTagsAllowed() — Sets the tagsAllowed option
Inherited from Zend\Filter\AbstractFilter
protected
public
- __invoke() — Invoke filter as a command
- getOptions() — Retrieve options representing object state
- hasPcreUnicodeSupport()
- setOptions()