- remove all html tag attribs (#1486003)

release-0.6
alecpl 15 years ago
parent 7e15422416
commit 4f7aa85f22

@ -676,7 +676,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR> '/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR>
'/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag '/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag
'/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/', // byte-order mark (only outlook?) '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/', // byte-order mark (only outlook?)
'/<html\sxmlns:[a-z]=[^>]+>/i', // washtml/DOMDocument cannot handle xml namespaces '/<html\s[^>]+>/i', // washtml/DOMDocument cannot handle xml namespaces
); );
$html_replace = array( $html_replace = array(
'\\1'.' &nbsp; '.'\\3', '\\1'.' &nbsp; '.'\\3',

Loading…
Cancel
Save