Class HTMLPurifier_AttrTransform_SafeEmbed

Description

Processes an entire attribute array for corrections needing multiple values.

Occasionally, a certain attribute will need to be removed and popped onto another value. Instead of creating a complex return syntax for HTMLPurifier_AttrDef, we just pass the whole attribute array to a specialized object and have that do the special work. That is the family of HTMLPurifier_AttrTransform.

An attribute transformation can be assigned to run before or after HTMLPurifier_AttrDef validation. See HTMLPurifier_HTMLDefinition for more details.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 10358)

HTMLPurifier_AttrTransform
   |
   --HTMLPurifier_AttrTransform_SafeEmbed
Variable Summary
mixed $name
Method Summary
void transform ( $attr,  $config,  $context)
Variables
mixed $name = "SafeEmbed" (line 10360)
  • access: public
Methods
transform (line 10362)
  • access: public
void transform ( $attr,  $config,  $context)
  • $attr
  • $config
  • $context

Redefinition of:
HTMLPurifier_AttrTransform::transform()
Abstract: makes changes to the attributes dependent on multiple values.

Inherited Methods

Inherited From HTMLPurifier_AttrTransform

HTMLPurifier_AttrTransform::confiscateAttr()
HTMLPurifier_AttrTransform::prependCSS()
HTMLPurifier_AttrTransform::transform()

Documentation generated on Sun, 06 Mar 2011 00:24:01 -0500 by phpDocumentor 1.4.3