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:
parent
a5ebf55d0e
commit
eca0f68c1f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user