category |
Zend |
package |
Zend_Filter |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
Methods
Sets the filter options
Allowed options are
'allowTags' => Tags which are allowed
'allowAttribs' => Attributes which are allowed
'allowComments' => Are comments allowed ?
__construct(string|array|\Zend_Config $options = null
) : void
Parameters
$options
string
array
\Zend_Config
Defined by Zend_Filter_Interface
filter(string $value) : string
todo |
improve docblock descriptions |
inherited_from |
\Zend_Filter_Interface::filter() |
Parameters
$value
string
Returns
string
Returns the attributesAllowed option
getAttributesAllowed() : array
Sets the attributesAllowed option
setAttributesAllowed(array|string $attributesAllowed) : \Zend_Filter_StripTags
Parameters
$attributesAllowed
array
string
Returns
\Zend_Filter_StripTags
Provides a fluent interface
Filters a single tag against the current option settings
_filterTag(string $tag) : string
Parameters
$tag
string
Returns
string
Properties
Array of allowed attributes for all allowed tags
$_attributesAllowed : array
Attributes stored here are allowed for all of the allowed tags.
Constants
Unique ID prefix used for allowing comments
UNIQUE_ID_PREFIX = '__Zend_Filter_StripTags__'
Whether comments are allowed
Default
false
If false (the default), then comments are removed from the input string.
This setting is now deprecated, and ignored internally.