Changeset 57d261b in github


Ignore:
Timestamp:
Feb 9, 2011 11:07:22 AM (2 years ago)
Author:
thomascube <thomas@…>
Children:
1fb14bd, aa46e8d6
Parents:
99897b7
Message:

Imporove stripping of invalid comments added in r4483

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/washtml.php

    rb46e5b74 r57d261b  
    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.