summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 13:28:58 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 13:28:58 +0000
commit21699a48caee624f5870939735327e142fad42ee (patch)
treecf8faed7ad94acbc8b78c62a982169db5d9c9d03
parent85036dddc3be710a9a3dd81fc777d79a64eafdfb (diff)
- Add two small tests for html2text converter
git-svn-id: https://svn.roundcube.net/trunk@5887 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/tests/html_to_text.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/roundcubemail/tests/html_to_text.php b/roundcubemail/tests/html_to_text.php
index c1d40d930..0838719cd 100644
--- a/roundcubemail/tests/html_to_text.php
+++ b/roundcubemail/tests/html_to_text.php
@@ -32,6 +32,16 @@ class rcube_test_html2text extends UnitTestCase
'in' => '&amp;quot;',
'out' => '&quot;',
),
+ 3 => array(
+ 'title' => 'HTML entity in STRONG tag',
+ 'in' => '<strong>&#347;</strong>', // ś
+ 'out' => 'Ś', // upper ś
+ ),
+ 4 => array(
+ 'title' => 'STRONG tag to upper-case conversion',
+ 'in' => '<strong>ś</strong>',
+ 'out' => 'Ś',
+ ),
);
$ht = new html2text(null, false, false);