3 // this MUST be placed in post, as it assumes that any value in dir is valid
6 * Post-trasnform that ensures that bdo tags have the dir attribute set.
8 class HTMLPurifier_AttrTransform_BdoDir
extends HTMLPurifier_AttrTransform
11 public function transform($attr, $config, $context) {
12 if (isset($attr['dir'])) return $attr;
13 $attr['dir'] = $config->get('Attr.DefaultTextDir');