Fix handling spaces after <br> on html2text conversion
| | |
| | | '/<script[^>]*>.*?<\/script>/i', // <script>s -- which strip_tags supposedly has problems with |
| | | '/<style[^>]*>.*?<\/style>/i', // <style>s -- which strip_tags supposedly has problems with |
| | | '/<p[^>]*>/i', // <P> |
| | | '/<br[^>]*>/i', // <br> |
| | | '/<br[^>]*>\s*/i', // <br> |
| | | '/<i[^>]*>(.*?)<\/i>/i', // <i> |
| | | '/<em[^>]*>(.*?)<\/em>/i', // <em> |
| | | '/(<ul[^>]*>|<\/ul>)/i', // <ul> and </ul> |
| | |
| | | 'in' => chr(0x002).chr(0x003), |
| | | 'out' => chr(0x002).chr(0x003), |
| | | ), |
| | | 7 => array( |
| | | 'title' => 'Remove spaces after <br>', |
| | | 'in' => 'test<br> test', |
| | | 'out' => "test\ntest", |
| | | ), |
| | | ); |
| | | } |
| | | |