Allow chevrons in HTML filter (fixes #2007)

This commit is contained in:
Bernd Bestel
2022-09-25 22:39:06 +02:00
parent a5c2157320
commit e1967bd603

View File

@@ -229,12 +229,12 @@ class BaseController
if (!is_bool($value) && !is_array($value))
{
$value = self::$htmlPurifierInstance->purify($value);
}
// Allow some special chars
if (!is_array($value))
{
// Maybe also possible through HTMLPurifier config (http://htmlpurifier.org/live/configdoc/plain.html)
$value = str_replace('&', '&', $value);
$value = str_replace('>', '>', $value);
$value = str_replace('&lt;', '<', $value);
}
}