diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 04c92c8be0d..38a65fc54ac 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3544,16 +3544,17 @@ function dol_textishtml($msg,$option=0)
{
if (preg_match('//i',$msg)) return true;
elseif (preg_match('/
/i',$msg)) return true;
elseif (preg_match('//i',$msg)) return true;
- elseif (preg_match('//i',$msg)) return true;
+ elseif (preg_match('/