diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 2b25acb6..3838c35d 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -133,14 +133,9 @@ class HTMLSanitizer { var $keptAttributes; var $onlyKeepText; -/* -// disabled due to PHP <5.6 breakage - const DEFAULT_CLEAR_TAGS = ["script", "iframe"]; - const KEPT_ATTRIBUTES = ["title", "href", "src"]; -*/ - const DEFAULT_CLEAR_TAGS = null; - const KEPT_ATTRIBUTES = null; -// ----------------------------------------------- + + public static $DEFAULT_CLEAR_TAGS = ["script", "iframe"]; + public static $KEPT_ATTRIBUTES = ["title", "href", "src"]; const ONLY_TEXT = null;