alecpl
2011-05-16 e4d094755086839f9400f36de5a15401460971b1
- Fix invalid comments handling (see example message in #1487915)


1 files modified
2 ■■■ changed files
program/lib/washtml.php 2 ●●● patch | view | raw | blame | history
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);