Changeset 1467 in subversion


Ignore:
Timestamp:
Jun 3, 2008 1:07:53 PM (5 years ago)
Author:
alec
Message:

-add convert encoding before html parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/washtml.php

    r1452 r1467  
    188188    $node = new DOMDocument('1.0', $config['charset']); 
    189189    $full = true; 
     190    $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); 
    190191    @$node->loadHTML($html); 
    191192    return self::dumpHtml($node, $config, $full); 
Note: See TracChangeset for help on using the changeset viewer.