Add unit test fol_textishtml()
This commit is contained in:
parent
e68076b8f1
commit
0ddf48869a
@ -577,6 +577,9 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
|
|||||||
$input='This is a text with accent é';
|
$input='This is a text with accent é';
|
||||||
$after=dol_textishtml($input);
|
$after=dol_textishtml($input);
|
||||||
$this->assertTrue($after, 'Test with a é');
|
$this->assertTrue($after, 'Test with a é');
|
||||||
|
$input='<i class="abc">xxx</i>';
|
||||||
|
$after=dol_textishtml($input);
|
||||||
|
$this->assertTrue($after, 'Test with i tag and class;');
|
||||||
|
|
||||||
// False
|
// False
|
||||||
$input='xxx < br>';
|
$input='xxx < br>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user