diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 41282cfb1a9..fe308c4c8d8 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2263,6 +2263,7 @@ else $text.= ' '.$objp->ref.''; $text.= ' - '.$objp->product; $description=($conf->global->PRODUIT_DESC_IN_FORM?'':$objp->description); + //print $description; print $html->textwithtooltip($text,$description,3,'','',$i); print_date_range($objp->date_start,$objp->date_end); if ($conf->global->PRODUIT_DESC_IN_FORM) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 647b505a0c4..2831d412418 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -103,6 +103,7 @@ class Form { if ($conf->use_javascript) { + $htmltext=eregi_replace('"',"\'",$htmltext); if ($tooltipon==1 || $tooltipon==3) { $paramfortooltiptext.=' onmouseover="showtip(\''.$htmltext.'\')"';