diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index ed2df4d007c..7fe4c8818ff 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -2533,7 +2533,7 @@ function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
*/
function dol_htmlcleanlastbr($stringtodecode)
{
- $ret=eregi_replace('(
|
|