ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
HTMLPurifier_AttrTransform_BdoDir Class Reference

Post-trasnform that ensures that bdo tags have the dir attribute set. More...

+ Inheritance diagram for HTMLPurifier_AttrTransform_BdoDir:
+ Collaboration diagram for HTMLPurifier_AttrTransform_BdoDir:

Public Member Functions

 transform ($attr, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrTransform
 transform ($attr, $config, $context)
 Abstract: makes changes to the attributes dependent on multiple values. More...
 
 prependCSS (&$attr, $css)
 Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. More...
 
 confiscateAttr (&$attr, $key)
 Retrieves and removes an attribute. More...
 

Detailed Description

Post-trasnform that ensures that bdo tags have the dir attribute set.

Definition at line 8 of file BdoDir.php.

Member Function Documentation

◆ transform()

HTMLPurifier_AttrTransform_BdoDir::transform (   $attr,
  $config,
  $context 
)

Definition at line 11 of file BdoDir.php.

11  {
12  if (isset($attr['dir'])) return $attr;
13  $attr['dir'] = $config->get('Attr.DefaultTextDir');
14  return $attr;
15  }

The documentation for this class was generated from the following file: