alecpl
2011-04-19 968754b09ebc1b501d0840e8c4eb3d0f617a5080
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);