summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-17 07:47:32 +0000
committeralecpl <alec@alec.pl>2008-09-17 07:47:32 +0000
commit7f62581c10435b319806ffec786d3b8389126574 (patch)
tree0cf543c6db37f168d72813a7677304403b089a7e /program/steps
parente11bc4aa9ee0e30d7283f8732992dfc3f9abfea1 (diff)
- Smart Tags and NOBR tag support in html messages (#1485363, #1485327)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 7e9f0fec3..3995bffe3 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -611,6 +611,17 @@ function rcmail_print_body($part, $p = array())
// PHP bug #32547 workaround: remove title tag
$html = preg_replace('/<title>.*<\/title>/', '', $html);
+ // special replacements (not properly handled by washtml class)
+ $html_search = array(
+ '/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR>
+ '/(<[\/]*st1:[^>]+>)/i', // Microsoft's Smart Tags <ST1>
+ );
+ $html_replace = array(
+ '\\1'.' &nbsp; '.'\\3',
+ '',
+ );
+ $html = preg_replace($html_search, $html_replace, $html);
+
// clean HTML with washhtml by Frederic Motte
$wash_opts = array(
'show_washed' => false,