mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00:00
6232221c08
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@160 48356398-32a2-884e-a903-53898d9a118a
20 lines
438 B
PHP
20 lines
438 B
PHP
<?php
|
|
|
|
// AttrDef = Attribute Definition
|
|
class HTMLPurifier_AttrDef
|
|
{
|
|
function HTMLPurifier_AttrDef() {}
|
|
|
|
function validate() {
|
|
trigger_error('Cannot call abstract function', E_USER_ERROR);
|
|
}
|
|
|
|
function parseCDATA($string) {
|
|
$string = trim($string);
|
|
$string = str_replace("\n", '', $string);
|
|
$string = str_replace(array("\r", "\t"), ' ', $string);
|
|
return $string;
|
|
}
|
|
}
|
|
|
|
?>
|