alecpl
2011-05-03 1abb97fe1b51f4188658c86754212b44c06fdb9a
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('/<!--[^->[]*>/', '', $html);
    @$node->loadHTML($html);
    return $this->dumpHtml($node);