diff options
author | thomascube <thomas@roundcube.net> | 2011-02-09 16:07:22 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-02-09 16:07:22 +0000 |
commit | 57d261bb8524387e794951e0ed6462fa677daace (patch) | |
tree | cdbe6fbd83eba53ebe4efb8b8dc060519419d345 /program/lib/washtml.php | |
parent | 99897b7c4e52a5ff026c3828b84653f460f571f0 (diff) |
Imporove stripping of invalid comments added in r4483v0.5.1@4518
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 f9daadbf5..0f8dc7ee6 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -273,7 +273,7 @@ class washtml $this->config['base_url'] = ''; // Remove invalid HTML comments (#1487759) - $html = preg_replace('/<![^>]*>/', '', $html); + $html = preg_replace('/<!--[^->]*>/', '', $html); @$node->loadHTML($html); return $this->dumpHtml($node); |