alecpl
2011-04-20 164b45964edc699db9e049dddd91e9de07635fcd
- Apply r4667 from trunk


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