From b011a67698b890634cfd4fbb6ccbc228d4e08986 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 25 Mar 2021 00:03:31 +0100 Subject: [PATCH] Fix remove var_dump --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {