0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-03-24 06:47:02 +00:00

15 lines
278 B
PHP
Raw Normal View History

<?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;
}
}
?>