mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 23:08:42 +00:00
314a48373c
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@308 48356398-32a2-884e-a903-53898d9a118a
17 lines
293 B
PHP
17 lines
293 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/AttrDef.php';
|
|
|
|
/**
|
|
* Validates arbitrary text according to the HTML spec.
|
|
*/
|
|
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
|
|
{
|
|
|
|
function validate($string, $config, &$context) {
|
|
return $this->parseCDATA($string);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|