From 76b593e0600055847319fc7adbdf9003617da0f8 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 14 Aug 2006 01:40:44 +0000 Subject: [PATCH] Have child definition drop invalid tags. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@241 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier/ChildDef.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/HTMLPurifier/ChildDef.php b/library/HTMLPurifier/ChildDef.php index 080059a4..b7893d81 100644 --- a/library/HTMLPurifier/ChildDef.php +++ b/library/HTMLPurifier/ChildDef.php @@ -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 }