Fix handling of non-break spaces in html to text conversion (#1490436)

pull/282/merge
Aleksander Machniak 9 years ago
parent 3a428d9571
commit 8e68430749

@ -11,6 +11,7 @@ CHANGELOG Roundcube Webmail
- Fix race-condition in saving user preferences and loading plugin config (#1490431)
- Fix so plain text signature field uses monospace font (#1490435)
- Fix so links with href == content aren't added to links list on html to text conversion (#1490434)
- Fix handling of non-break spaces in html to text conversion (#1490436)
RELEASE 1.1.2
-------------

@ -216,7 +216,7 @@ class rcube_html2text
* @see $ent_search
*/
protected $ent_replace = array(
' ', // Non-breaking space
"\xC2\xA0", // Non-breaking space
'"', // Double quotes
"'", // Single quotes
'>',

@ -51,6 +51,11 @@ class rc_html2text extends PHPUnit_Framework_TestCase
'in' => 'test<br> test',
'out' => "test\ntest",
),
8 => array(
'title' => '&nbsp; handling test',
'in' => '<div>eye: &nbsp;&nbsp;test<br /> tes: &nbsp;&nbsp;test</div>',
'out' => "eye: test\ntes: test",
),
);
}

Loading…
Cancel
Save