diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ed1193e696e..d2eb3c0f4af 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -357,7 +357,6 @@ class Form $tag='td'; if ($notabs == 2) $tag='div'; if ($notabs == 3) $tag='span'; - // Sanitize tooltip $htmltext=str_replace("\\","\\\\",$htmltext); $htmltext=str_replace("\r","",$htmltext); @@ -368,12 +367,11 @@ class Form else $paramfortooltipimg =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag if ($tooltipon == 1 || $tooltipon == 3) $paramfortooltiptd=' class="classfortooltip'.($extracss?' '.$extracss:'').'" title="'.($noencodehtmltext?$htmltext:dol_escape_htmltag($htmltext,1)).'"'; // Attribut to put on td tag to store tooltip else $paramfortooltiptd =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag - $s=""; if (empty($notabs)) $s.='