|
|
|
@ -27,19 +27,19 @@ class rc_html2text extends PHPUnit_Framework_TestCase
|
|
|
|
|
'out' => '"',
|
|
|
|
|
),
|
|
|
|
|
3 => array(
|
|
|
|
|
'title' => 'HTML entity in STRONG tag',
|
|
|
|
|
'in' => '<strong>ś</strong>', // ś
|
|
|
|
|
'out' => 'Ś', // upper ś
|
|
|
|
|
'title' => 'HTML entity in H1 tag',
|
|
|
|
|
'in' => '<h1>ś</h1>', // ś
|
|
|
|
|
'out' => "Ś\n\n", // upper ś
|
|
|
|
|
),
|
|
|
|
|
4 => array(
|
|
|
|
|
'title' => 'STRONG tag to upper-case conversion',
|
|
|
|
|
'in' => '<strong>ś</strong>',
|
|
|
|
|
'out' => 'Ś',
|
|
|
|
|
'title' => 'H1 tag to upper-case conversion',
|
|
|
|
|
'in' => '<h1>ś</h1>',
|
|
|
|
|
'out' => "Ś\n\n",
|
|
|
|
|
),
|
|
|
|
|
5 => array(
|
|
|
|
|
'title' => 'STRONG inside B tag',
|
|
|
|
|
'in' => '<b><strong>ś</strong></b>',
|
|
|
|
|
'out' => 'Ś',
|
|
|
|
|
'title' => 'H1 inside B tag',
|
|
|
|
|
'in' => '<b><h1>ś</h1></b>',
|
|
|
|
|
'out' => "Ś\n\n",
|
|
|
|
|
),
|
|
|
|
|
6 => array(
|
|
|
|
|
'title' => 'Don\'t remove non-printable chars',
|
|
|
|
@ -56,6 +56,21 @@ class rc_html2text extends PHPUnit_Framework_TestCase
|
|
|
|
|
'in' => '<div>eye: test<br /> tes: test</div>',
|
|
|
|
|
'out' => "eye: test\ntes: test",
|
|
|
|
|
),
|
|
|
|
|
9 => array(
|
|
|
|
|
'title' => 'HTML entity in STRONG tag',
|
|
|
|
|
'in' => '<strong>ś</strong>', // ś
|
|
|
|
|
'out' => 'ś',
|
|
|
|
|
),
|
|
|
|
|
10 => array(
|
|
|
|
|
'title' => 'STRONG tag to upper-case conversion',
|
|
|
|
|
'in' => '<strong>ś</strong>',
|
|
|
|
|
'out' => 'ś',
|
|
|
|
|
),
|
|
|
|
|
11 => array(
|
|
|
|
|
'title' => 'STRONG inside B tag',
|
|
|
|
|
'in' => '<b><strong>ś</strong></b>',
|
|
|
|
|
'out' => 'ś',
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|