alecpl
2011-06-18 24201dc1f48770d20ffaa44fabe1ef571f979da9
program/lib/washtml.php
@@ -273,7 +273,8 @@
      $this->config['base_url'] = '';
    // Remove invalid HTML comments (#1487759)
    $html = preg_replace('/<!--[^->]*>/', '', $html);
    // Don't remove valid conditional comments
    $html = preg_replace('/<!--[^->[\n]*>/', '', $html);
    @$node->loadHTML($html);
    return $this->dumpHtml($node);