Update abstract-wc-email.php

Adds a plain text replacement for the dollar sign encoded as html entity.
This commit is contained in:
PURPORC 2014-01-06 18:39:41 +11:00
parent 58f31163fc
commit d18bff3f5b
1 changed files with 2 additions and 0 deletions

View File

@ -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
);