allow to pass config/validation rules to current purifying engine (HTMLawed)

This commit is contained in:
Klaus Leithoff 2013-10-10 09:30:25 +00:00
parent cce86e346e
commit 2a61ac9264

View File

@ -60,8 +60,7 @@ class etemplate_widget_htmlarea extends etemplate_widget
{
$value = self::get_array($content, $form_name);
$valid =& self::get_array($validated, $form_name, true);
$valid = html::purify($value);
$valid = html::purify($value,($this->attrs['validation_rules']?$this->attrs['validation_rules']:null));
}
}
}