Aleksander Machniak
2015-06-17 25c8fe4eeb1e9c1a3055bb27984f1274f99fc1d7
Fix handling of non-break spaces in html to text conversion (#1490436)
3 files modified
8 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_html2text.php 2 ●●● patch | view | raw | blame | history
tests/Framework/Html2text.php 5 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -18,6 +18,7 @@
- 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
-------------
program/lib/Roundcube/rcube_html2text.php
@@ -216,7 +216,7 @@
     * @see $ent_search
     */
    protected $ent_replace = array(
        ' ',                                    // Non-breaking space
        "\xC2\xA0",                             // Non-breaking space
        '"',                                    // Double quotes
        "'",                                    // Single quotes
        '>',
tests/Framework/Html2text.php
@@ -51,6 +51,11 @@
                '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",
            ),
        );
    }