Class StripTags

Summary

Fully Qualified Name: Zend\Filter\StripTags
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Sets the filter options Allowed options are 'allowTags' => Tags which are allowed 'allowAttribs' => Attributes which are allowed 'allowComments' => Are comments allowed ? StripTags
__invoke() Invoke filter as a command AbstractFilter
filter() Defined by Zend\Filter\FilterInterface StripTags
getAttributesAllowed() Returns the attributesAllowed option StripTags
getOptions() Retrieve options representing object state AbstractFilter
getTagsAllowed() Returns the tagsAllowed option StripTags
hasPcreUnicodeSupport() AbstractFilter
setAttributesAllowed() Sets the attributesAllowed option StripTags
setOptions() AbstractFilter
setTagsAllowed() Sets the tagsAllowed option StripTags

Method Details

__construct()

Sets the filter options Allowed options are 'allowTags' => Tags which are allowed 'allowAttribs' => Attributes which are allowed 'allowComments' => Are comments allowed ?

Parameter Name Type Description
$options string|array|\Traversable

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Defined by Zend\Filter\FilterInterface

If the value provided is non-scalar, the value will remain unfiltered

Parameter Name Type Description
$value string

Returns: string|mixed

getAttributesAllowed()

Returns the attributesAllowed option

Returns: array

getOptions()

Retrieve options representing object state

Returns: array

getTagsAllowed()

Returns the tagsAllowed option

Returns: array

hasPcreUnicodeSupport()

Returns: bool

setAttributesAllowed()

Sets the attributesAllowed option

Parameter Name Type Description
$attributesAllowed array|string

Returns: self Provides a fluent interface

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

setTagsAllowed()

Sets the tagsAllowed option

Parameter Name Type Description
$tagsAllowed array|string

Returns: self Provides a fluent interface

Top