mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Have child definition drop invalid tags.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@241 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
f72d8d3dc1
commit
76b593e060
@ -126,9 +126,9 @@ class HTMLPurifier_ChildDef_Required extends HTMLPurifier_ChildDef
|
||||
if (!isset($this->elements[$token->name])) {
|
||||
$is_deleting = true;
|
||||
if ($pcdata_allowed) {
|
||||
$result[] = new HTMLPurifier_Token_Text(
|
||||
$this->gen->generateFromToken($token)
|
||||
);
|
||||
//$result[] = new HTMLPurifier_Token_Text(
|
||||
// $this->gen->generateFromToken($token)
|
||||
//);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@ -136,10 +136,10 @@ class HTMLPurifier_ChildDef_Required extends HTMLPurifier_ChildDef
|
||||
if (!$is_deleting) {
|
||||
$result[] = $token;
|
||||
} elseif ($pcdata_allowed) {
|
||||
$result[] =
|
||||
new HTMLPurifier_Token_Text(
|
||||
$this->gen->generateFromToken( $token )
|
||||
);
|
||||
//$result[] =
|
||||
// new HTMLPurifier_Token_Text(
|
||||
// $this->gen->generateFromToken( $token )
|
||||
// );
|
||||
} else {
|
||||
// drop silently
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user