1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

[2.1.0] Two tiny bugfixes:

- Remove contents of <style> tags
- Use XHTMLStrict Tidy routines for XHTML 1.1

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1311 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-07-11 20:06:15 +00:00
parent e7e81c0a5b
commit 732fe5cad7
3 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ class HTMLPurifier_Strategy_RemoveForeignElements extends HTMLPurifier_Strategy
} else {
// check if we need to destroy all of the tag's children
// CAN BE GENERICIZED
if ($token->name == 'script' && $remove_script_contents) {
if (($token->name == 'script' && $remove_script_contents) || $token->name == 'style') {
if ($token->type == 'start') {
$remove_until = $token->name;
} elseif ($token->type == 'empty') {