mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 03:50:42 +03:00
Merge pull request #182 from teromene/new-attribute-system
Update HTMLUtills
This commit is contained in:
commit
e5f887ec1c
1 changed files with 3 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue