summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/lib/washtml.php2
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);