diff --git a/program/lib/html2text.php b/program/lib/html2text.php index 35120a71218..b5b4baef34a 100644 --- a/program/lib/html2text.php +++ b/program/lib/html2text.php @@ -236,7 +236,7 @@ class html2text '-', '*', '£', - 'EUR', // Euro sign. € ? + 'EUR', // Euro sign. � ? '|+|amp|+|', // Ampersand: see _converter() ' ', // Runs of spaces, post-handling ); @@ -507,7 +507,7 @@ function _converter(&$text) $text = preg_replace($this->search, $this->replace, $text); // Run our defined tags search-and-replace with callback - $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text); + $text = preg_replace_callback($this->callback_search, array($this, '_preg_callback'), $text); // Strip any other HTML tags $text = strip_tags($text, $this->allowed_tags);