Filter/StripTags.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id$
Package: Zend_Filter- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants


UNIQUE_ID_PREFIX
= '__Zend_Filter_StripTags__'Unique ID prefix used for allowing comments
Properties



array $_attributesAllowed = array()Array of allowed attributes for all allowed tags
Attributes stored here are allowed for all of the allowed tags.
Default valuearray()Details- Type
- array



array $_tagsAllowed = array()Array of allowed tags and allowed attributes for each allowed tag
Tags are stored in the array keys, and the array values are themselves
arrays of the attributes allowed for the corresponding tag.
Default valuearray()Details- Type
- array



boolean $commentsAllowed = falseWhether comments are allowed
If false (the default), then comments are removed from the input string.
This setting is now deprecated, and ignored internally.
Default valuefalseDetails- Type
- boolean
- Deprecated
-
Methods



_filterTag(string $tag) : stringFilters a single tag against the current option settings
Parameters| Name | Type | Description |
|---|
| $tag | string | |
|---|
Returns 


filter(string $value) : stringDefined by Zend_Filter_Interface
Parameters| Name | Type | Description |
|---|
| $value | string | |
|---|
ReturnsDetails- Todo
- improve docblock descriptions



getCommentsAllowed() : boolReturns the commentsAllowed option
This setting is now deprecated and ignored internally.
ReturnsDetails- Deprecated
-



setAttributesAllowed(array | string $attributesAllowed) : \Zend_Filter_StripTagsSets the attributesAllowed option
Parameters| Name | Type | Description |
|---|
| $attributesAllowed | array | string | |
|---|
Returns 


setCommentsAllowed(boolean $commentsAllowed) : \Zend_Filter_StripTagsSets the commentsAllowed option
This setting is now deprecated and ignored internally.
Parameters| Name | Type | Description |
|---|
| $commentsAllowed | boolean | |
|---|
ReturnsDetails- Deprecated
-



setTagsAllowed(array | string $tagsAllowed) : \Zend_Filter_StripTagsSets the tagsAllowed option
Parameters| Name | Type | Description |
|---|
| $tagsAllowed | array | string | |
|---|
Returns