diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2d75d8ed90b..7c5ef20051f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -6336,7 +6336,7 @@ function dol_string_onlythesehtmlattributes($stringtoclean, $allowed_attributes { if (class_exists('DOMDocument') && !empty($stringtoclean)) { $stringtoclean = ''.$stringtoclean.''; - var_dump($stringtoclean); + $dom = new DOMDocument(); $dom->loadHTML($stringtoclean, LIBXML_ERR_NONE|LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD|LIBXML_NONET|LIBXML_NOWARNING|LIBXML_NOXMLDECL); if (is_object($dom)) {