- Fix invalid comments handling (see example message in #1487915)

release-0.6
alecpl 14 years ago
parent 0ec7fe4efc
commit e4d0947550

@ -274,7 +274,7 @@ class washtml
// Remove invalid HTML comments (#1487759)
// Don't remove valid conditional comments
$html = preg_replace('/<!--[^->[]*>/', '', $html);
$html = preg_replace('/<!--[^->[\n]*>/', '', $html);
@$node->loadHTML($html);
return $this->dumpHtml($node);

Loading…
Cancel
Save