This commit is contained in:
Laurent Destailleur
2020-09-18 14:01:00 +02:00
parent 9134892c71
commit 2fe9514b6b

View File

@@ -5547,6 +5547,7 @@ function dol_string_onlythesehtmltags($stringtoclean, $cleanalsosomestyles = 1,
if ($removeclassattribute) {
$stringtoclean = preg_replace('/(<[^>]+)\s+class=((["\']).*?\\3|\\w*)/i', '\\1', $stringtoclean);
}
// TODO Remove '/href=("|\'|)javascript/' string ?
$temp = strip_tags($stringtoclean, $allowed_tags_string);