diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 3f7d9b8af09..63759ba71ed 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -5756,9 +5756,9 @@ function dol_textishtml($msg, $option = 0)
elseif (preg_match('/
/i', $msg)) return true;
elseif (preg_match('/
/i', $msg)) return true;
- elseif (preg_match('/<(br|div|font|li|p|span|strong|table)>/i', $msg)) return true;
- elseif (preg_match('/<(br|div|font|li|p|span|strong|table)\s+[^<>\/]*>/i', $msg)) return true;
- elseif (preg_match('/<(br|div|font|li|p|span|strong|table)\s+[^<>\/]*\/>/i', $msg)) return true;
+ elseif (preg_match('/<(br|div|font|li|p|span|strong|table|s)>/i', $msg)) return true;
+ elseif (preg_match('/<(br|div|font|li|p|span|strong|table|s)\s+[^<>\/]*>/i', $msg)) return true;
+ elseif (preg_match('/<(br|div|font|li|p|span|strong|table|s)\s+[^<>\/]*\/>/i', $msg)) return true;
elseif (preg_match('/
]*src[^<>]*>/i', $msg)) return true; // must accept
elseif (preg_match('/]*href[^<>]*>/i', $msg)) return true; // must accept
elseif (preg_match('//i', $msg)) return true;