Fix detection of html was wrong with img

This commit is contained in:
Laurent Destailleur
2015-03-26 12:05:52 +01:00
parent 1ca95acbd7
commit 42c2c81e28
2 changed files with 7 additions and 3 deletions

View File

@@ -204,6 +204,9 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$input='<h2>abc</h2>';
$after=dol_textishtml($input);
$this->assertTrue($after);
$input='<img src="https://xxx.com/aaa/image.png" />';
$after=dol_textishtml($input);
$this->assertTrue($after,'Failure on test of img tag');
// False
$input='xxx < br>';