mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
6232221c08
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@160 48356398-32a2-884e-a903-53898d9a118a
15 lines
278 B
PHP
15 lines
278 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/AttrDef.php';
|
|
|
|
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
|
|
{
|
|
|
|
function validate($string) {
|
|
$new_string = $this->parseCDATA($string);
|
|
return ($string == $new_string) ? true : $new_string;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|