0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 13:21:51 +00:00

CSS parsed as CDATA.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@234 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-08-13 21:44:52 +00:00
parent a5ebf55d0e
commit eca0f68c1f

View File

@ -3,11 +3,13 @@
require_once 'HTMLPurifier/AttrDef.php';
require_once 'HTMLPurifier/CSSDefinition.php';
class HTMLPurifier_AttrDef_CSS
class HTMLPurifier_AttrDef_CSS extends HTMLPurifier_AttrDef
{
function validate($css, $config, &$context) {
$css = $this->parseCDATA($css);
$definition = HTMLPurifier_CSSDefinition::instance();
// we're going to break the spec and explode by semicolons.