Changeset 4518 in subversion


Ignore:
Timestamp:
Feb 9, 2011 11:07:22 AM (2 years ago)
Author:
thomasb
Message:

Imporove stripping of invalid comments added in r4483

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.5/program/lib/washtml.php

    r4509 r4518  
    274274 
    275275    // Remove invalid HTML comments (#1487759) 
    276     $html = preg_replace('/<![^>]*>/', '', $html); 
     276    $html = preg_replace('/<!--[^->]*>/', '', $html); 
    277277 
    278278    @$node->loadHTML($html); 
Note: See TracChangeset for help on using the changeset viewer.