Filter/StripTags.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id: StripTags.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Filter_StripTags
- Implements
- \Zend_Filter_Interface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

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

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

__construct(string | array | \Zend_Config $options = null) : voidSets the filter options Allowed options are 'allowTags' => Tags which are allowed 'allowAttribs' => Attributes which are allowed 'allowComments' => Are comments allowed ?
| Name | Type | Description |
|---|---|---|
| $options | string | array | \Zend_Config |

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

filter(string $value) : stringDefined by Zend_Filter_Interface
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Filter_Exception | If filtering $value is impossible |
- Todo
- improve docblock descriptions

getCommentsAllowed() : boolReturns the commentsAllowed option
This setting is now deprecated and ignored internally.
| Type | Description |
|---|---|
| bool |
- Deprecated

setAttributesAllowed(array | string $attributesAllowed) : \Zend_Filter_StripTagsSets the attributesAllowed option
| Name | Type | Description |
|---|---|---|
| $attributesAllowed | array | string |
| Type | Description |
|---|---|
| \Zend_Filter_StripTags | Provides a fluent interface |

setCommentsAllowed(boolean $commentsAllowed) : \Zend_Filter_StripTagsSets the commentsAllowed option
This setting is now deprecated and ignored internally.
| Name | Type | Description |
|---|---|---|
| $commentsAllowed | boolean |
| Type | Description |
|---|---|
| \Zend_Filter_StripTags | Provides a fluent interface |
- Deprecated

setTagsAllowed(array | string $tagsAllowed) : \Zend_Filter_StripTagsSets the tagsAllowed option
| Name | Type | Description |
|---|---|---|
| $tagsAllowed | array | string |
| Type | Description |
|---|---|
| \Zend_Filter_StripTags | Provides a fluent interface |