## Zend_Filter_StripTags

Description

Implements interfaces:

- Zend_Filter_Interface

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Filter/StripTags.php (line 36)

Variable Summary
array $_attributesAllowed
array $_tagsAllowed
Method Summary
void __construct ([array|string $tagsAllowed = null], [array|string $attributesAllowed = null])
string filter (string $value)
array getAttributesAllowed ()
array getTagsAllowed ()
Zend_Filter_StripTags setAttributesAllowed (array|string $attributesAllowed)
Zend_Filter_StripTags setTagsAllowed (array|string $tagsAllowed)
string _filterTag (string $tag)
Variables
array $_attributesAllowed = array() (line 55)

Array of allowed attributes for all allowed tags

Attributes stored here are allowed for all of the allowed tags.

- access: protected

array $_tagsAllowed = array() (line 46)

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.

- access: protected

Methods
Constructor __construct (line 64)

Sets the filter options

- access: public

void __construct ([array|string $tagsAllowed = null], [array|string $attributesAllowed = null])

- array|string $tagsAllowed
- array|string $attributesAllowed

filter (line 165)

Defined by Zend_Filter_Interface

- access: public
- todo: improve docblock descriptions

string filter (string $value)

- string $value

Implementation of:

Zend_Filter_Interface::filter()
  Returns the result of filtering $value

getAttributesAllowed (line 128)

Returns the attributesAllowed option

- access: public

array getAttributesAllowed ()
getTagsAllowed (line 75)

Returns the tagsAllowed option

- access: public

array getTagsAllowed ()
setAttributesAllowed (line 139)

Sets the attributesAllowed option

- return: Provides a fluent interface
- access: public

Zend_Filter_StripTags setAttributesAllowed (array|string $attributesAllowed)

- array|string $attributesAllowed

setTagsAllowed (line 86)

Sets the tagsAllowed option

- return: Provides a fluent interface
- access: public

Zend_Filter_StripTags setTagsAllowed (array|string $tagsAllowed)

- array|string $tagsAllowed

_filterTag (line 198)

Filters a single tag against the current option settings

- access: protected

string _filterTag (string $tag)

- string $tag

Documentation generated on Wed, 21 Feb 2007 12:00:39 -0800 by phpDocumentor 1.3.1