thomascube
2011-02-09 b1d31eea94a8ed9e26ee97ad0e401cb03708d56f
Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments

1 files modified
2 ■■■ changed files
program/lib/washtml.php 2 ●●● patch | view | raw | blame | history
program/lib/washtml.php
@@ -273,7 +273,7 @@
      $this->config['base_url'] = '';
    // Remove invalid HTML comments (#1487759)
    $html = preg_replace('/<![^>]*>/', '', $html);
    $html = preg_replace('/<!--[^->]*>/', '', $html);
    @$node->loadHTML($html);
    return $this->dumpHtml($node);