diff options
author | alecpl <alec@alec.pl> | 2011-05-16 07:11:02 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-16 07:11:02 +0000 |
commit | e4d094755086839f9400f36de5a15401460971b1 (patch) | |
tree | 501ac1ac736c0311009f343a2faedf35b267bb6b /program/lib/washtml.php | |
parent | 0ec7fe4efc8f6e1cd8fba5084c5c1a30cd900370 (diff) |
- Fix invalid comments handling (see example message in #1487915)
Diffstat (limited to 'program/lib/washtml.php')
-rw-r--r-- | program/lib/washtml.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php index e8befe835..a5eeb841b 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -274,7 +274,7 @@ class washtml // Remove invalid HTML comments (#1487759) // Don't remove valid conditional comments - $html = preg_replace('/<!--[^->[]*>/', '', $html); + $html = preg_replace('/<!--[^->[\n]*>/', '', $html); @$node->loadHTML($html); return $this->dumpHtml($node); |