2006-07-23 00:11:03 +00:00
|
|
|
<?php
|
|
|
|
|
2006-08-12 16:04:40 +00:00
|
|
|
require_once 'HTMLPurifier/AttrContext.php';
|
|
|
|
|
2006-07-30 00:54:38 +00:00
|
|
|
// AttrDef = Attribute Definition
|
2006-07-23 00:11:03 +00:00
|
|
|
class HTMLPurifier_AttrDef
|
|
|
|
{
|
2006-07-30 00:54:38 +00:00
|
|
|
function HTMLPurifier_AttrDef() {}
|
|
|
|
|
2006-08-12 16:04:40 +00:00
|
|
|
function validate($string, $config, &$context) {
|
2006-07-30 00:54:38 +00:00
|
|
|
trigger_error('Cannot call abstract function', E_USER_ERROR);
|
2006-07-23 00:11:03 +00:00
|
|
|
}
|
2006-08-04 03:13:04 +00:00
|
|
|
|
|
|
|
function parseCDATA($string) {
|
|
|
|
$string = trim($string);
|
|
|
|
$string = str_replace("\n", '', $string);
|
|
|
|
$string = str_replace(array("\r", "\t"), ' ', $string);
|
|
|
|
return $string;
|
|
|
|
}
|
2006-07-23 00:11:03 +00:00
|
|
|
}
|
|
|
|
|
2006-07-21 23:58:45 +00:00
|
|
|
?>
|