From d18bff3f5bff7bf475f828cdfe9bada4fb19a5a9 Mon Sep 17 00:00:00 2001 From: PURPORC Date: Mon, 6 Jan 2014 18:39:41 +1100 Subject: [PATCH] Update abstract-wc-email.php Adds a plain text replacement for the dollar sign encoded as html entity. --- includes/abstracts/abstract-wc-email.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/abstracts/abstract-wc-email.php b/includes/abstracts/abstract-wc-email.php index d6537bd423b..71e4aa3c0fb 100644 --- a/includes/abstracts/abstract-wc-email.php +++ b/includes/abstracts/abstract-wc-email.php @@ -90,6 +90,7 @@ abstract class WC_Email extends WC_Settings_API { '/&(bull|#149|#8226);/i', // Bullet '/&(pound|#163);/i', // Pound sign '/&(euro|#8364);/i', // Euro sign + '/$/' // Dollar sign '/&[^&;]+;/i', // Unknown/unhandled entities '/[ ]{2,}/' // Runs of spaces, post-handling ); @@ -117,6 +118,7 @@ abstract class WC_Email extends WC_Settings_API { '*', '£', 'EUR', // Euro sign. € ? + '$', // Dollar sign '', // Unknown/unhandled entities ' ' // Runs of spaces, post-handling );