From 9090c2e470136ce55cf8271227872c42251a0b08 Mon Sep 17 00:00:00 2001 From: Teromene Date: Sun, 6 Dec 2015 17:47:20 +0000 Subject: [PATCH] Changed HTMLUtils to be usable with php < 5.6 --- lib/HTMLUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 9f097230..09a960d3 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -133,8 +133,8 @@ class HTMLSanitizer { var $keptAttributes; var $onlyKeepText; - const DEFAULT_CLEAR_TAGS = ["script", "iframe"]; - const KEPT_ATTRIBUTES = ["title", "href", "src"]; + public static $DEFAULT_CLEAR_TAGS = ["script", "iframe"]; + public static $KEPT_ATTRIBUTES = ["title", "href", "src"]; const ONLY_TEXT = null;