Skip to content
Snippets Groups Projects
Commit 69ca9cf7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

[ bug #445 ] Hex escaping in descriptions

parent f5b58b6f
No related branches found
No related tags found
No related merge requests found
......@@ -3331,7 +3331,8 @@ function dol_textishtml($msg,$option=0)
elseif (preg_match('/<img/i',$msg)) return true;
elseif (preg_match('/<i>/i',$msg)) return true;
elseif (preg_match('/<b>/i',$msg)) return true;
elseif (preg_match('/&[A-Z0-9]{1,6};/i',$msg)) return true;
elseif (preg_match('/&[A-Z0-9]{1,6};/i',$msg)) return true; // Html entities names (http://www.w3schools.com/tags/ref_entities.asp)
elseif (preg_match('/&#[0-9]{2,3};/i',$msg)) return true; // Html entities numbers (http://www.w3schools.com/tags/ref_entities.asp)
return false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment