1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-16 11:03:58 +02:00

Add lots of documentation.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@293 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-08-17 20:29:34 +00:00
parent 252c5afae0
commit 66ddc4cc5a
8 changed files with 116 additions and 29 deletions

View File

@@ -14,10 +14,10 @@ HTMLPurifier_ConfigDef::define(
class HTMLPurifier_AttrTransform_BdoDir extends HTMLPurifier_AttrTransform
{
function transform($attributes, $config) {
if (isset($attributes['dir'])) return $attributes;
$attributes['dir'] = $config->get('Attr', 'DefaultTextDir');
return $attributes;
function transform($attr, $config) {
if (isset($attr['dir'])) return $attributes;
$attr['dir'] = $config->get('Attr', 'DefaultTextDir');
return $attr;
}
}