From e4d094755086839f9400f36de5a15401460971b1 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 16 May 2011 03:11:02 -0400 Subject: [PATCH] - Fix invalid comments handling (see example message in #1487915) --- 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 e8befe8..a5eeb84 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -274,7 +274,7 @@ // 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); -- Gitblit v1.9.1