Ignore:
Timestamp:
Sep 17, 2008 3:47:32 AM (5 years ago)
Author:
alec
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1807 r1811  
    612612    $html = preg_replace('/<title>.*<\/title>/', '', $html); 
    613613 
     614    // special replacements (not properly handled by washtml class) 
     615    $html_search = array( 
     616        '/(<\/nobr>)(\s+)(<nobr>)/i',   // space(s) between <NOBR> 
     617        '/(<[\/]*st1:[^>]+>)/i',        // Microsoft's Smart Tags <ST1> 
     618    ); 
     619    $html_replace = array( 
     620        '\\1'.' &nbsp; '.'\\3', 
     621        '', 
     622    ); 
     623    $html = preg_replace($html_search, $html_replace, $html); 
     624 
    614625    // clean HTML with washhtml by Frederic Motte 
    615626    $wash_opts = array( 
Note: See TracChangeset for help on using the changeset viewer.