From 4c86f38306d4d917c1b96fd5d59dc80238195ae1 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Sun, 6 Dec 2015 17:03:31 +0100 Subject: [PATCH] disabling incompatibilities issue #181 --- lib/HTMLUtils.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 9f09723..2b25acb 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -133,8 +133,14 @@ 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; +// ----------------------------------------------- const ONLY_TEXT = null;