| | |
| | | '--', |
| | | '-', |
| | | '*', |
| | | '£', |
| | | '£', |
| | | 'EUR', // Euro sign. ? |
| | | '', // Unknown/unhandled entities |
| | | ' ' // Runs of spaces, post-handling |
| | |
| | | |
| | | // Convert <PRE> |
| | | $this->_convert_pre($text); |
| | | |
| | | |
| | | // Replace known html entities |
| | | $text = html_entity_decode($text, ENT_COMPAT, 'UTF-8'); |
| | | |
| | | // Run our defined search-and-replace |
| | | $text = preg_replace($this->search, $this->replace, $text); |
| | | |
| | |
| | | while(preg_match('/<pre[^>]*>(.*)<\/pre>/ismU', $text, $matches)) |
| | | { |
| | | $result = preg_replace($this->pre_search, $this->pre_replace, $matches[1]); |
| | | $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text); |
| | | $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text, 1); |
| | | } |
| | | } |
| | | } |