diff options
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/washtml.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php index 0f8dc7ee6..e8befe835 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -273,7 +273,8 @@ class washtml $this->config['base_url'] = ''; // Remove invalid HTML comments (#1487759) - $html = preg_replace('/<!--[^->]*>/', '', $html); + // Don't remove valid conditional comments + $html = preg_replace('/<!--[^->[]*>/', '', $html); @$node->loadHTML($html); return $this->dumpHtml($node); |