import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
15
libs/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php
Executable file
15
libs/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Validates arbitrary text according to the HTML spec.
|
||||
*/
|
||||
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
|
||||
{
|
||||
|
||||
public function validate($string, $config, $context) {
|
||||
return $this->parseCDATA($string);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
Reference in New Issue
Block a user