Class Zend_Filter_StripTags

Description

Implements interfaces:

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

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


	
			
Variable Summary
Method Summary
 void __construct ([array|string $tagsAllowed = null], [array|string $attributesAllowed = null])
 string filter (string $value)
 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 169)

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 202)

Filters a single tag against the current option settings

  • access: protected
string _filterTag (string $tag)
  • string $tag

Documentation generated on Thu, 18 Jan 2007 10:01:20 -0800 by phpDocumentor 1.3.1