convertHTML2Text: handling of chars that break further processing of converted Data (e.g.: Mail to Infolog)

This commit is contained in:
Klaus Leithoff 2010-09-15 08:39:51 +00:00
parent 318b97f04f
commit 5105251b11

View File

@ -1139,7 +1139,9 @@ class translation
'@&(pound|#163);@i', // Pound
'@&(copy|#169);@i', // Copyright
'@&(reg|#174);@i', // Registered
'@&(trade|#8482);@i', // trade
'@'@i', // singleQuote
'@(\xc2\xa0)@', // nbsp or tab (encoded windows-style)
);
$Replace = array ('',
'"',
@ -1150,9 +1152,11 @@ class translation
chr(161),
chr(162),
chr(163),
chr(169),
chr(174),
'(C)',//chr(169),// copyrighgt
'(R)',//chr(174),// registered
'(TM)',// trade
"'",
' ',
);
$_html = preg_replace($Rules, $Replace, $_html);