From f718e2b0db0fe3477212a8dd6c3ec067f4432862 Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Sat, 18 Mar 2017 17:50:05 +0100 Subject: :arrow_up: Update HTML Purifier library. Updated HTML Purifier from 4.6.0 to 4.9.2 with better PHP7 compatibility. Used composer to manage this library. --- library/HTMLPurifier/Node/Comment.php | 36 --------------------- library/HTMLPurifier/Node/Element.php | 59 ----------------------------------- library/HTMLPurifier/Node/Text.php | 54 -------------------------------- 3 files changed, 149 deletions(-) delete mode 100644 library/HTMLPurifier/Node/Comment.php delete mode 100644 library/HTMLPurifier/Node/Element.php delete mode 100644 library/HTMLPurifier/Node/Text.php (limited to 'library/HTMLPurifier/Node') diff --git a/library/HTMLPurifier/Node/Comment.php b/library/HTMLPurifier/Node/Comment.php deleted file mode 100644 index 38ba19394..000000000 --- a/library/HTMLPurifier/Node/Comment.php +++ /dev/null @@ -1,36 +0,0 @@ -data = $data; - $this->line = $line; - $this->col = $col; - } - - public function toTokenPair() { - return array(new HTMLPurifier_Token_Comment($this->data, $this->line, $this->col), null); - } -} diff --git a/library/HTMLPurifier/Node/Element.php b/library/HTMLPurifier/Node/Element.php deleted file mode 100644 index 6cbf56dad..000000000 --- a/library/HTMLPurifier/Node/Element.php +++ /dev/null @@ -1,59 +0,0 @@ - form or the form, i.e. - * is it a pair of start/end tokens or an empty token. - * @bool - */ - public $empty = false; - - public $endCol = null, $endLine = null, $endArmor = array(); - - public function __construct($name, $attr = array(), $line = null, $col = null, $armor = array()) { - $this->name = $name; - $this->attr = $attr; - $this->line = $line; - $this->col = $col; - $this->armor = $armor; - } - - public function toTokenPair() { - // XXX inefficiency here, normalization is not necessary - if ($this->empty) { - return array(new HTMLPurifier_Token_Empty($this->name, $this->attr, $this->line, $this->col, $this->armor), null); - } else { - $start = new HTMLPurifier_Token_Start($this->name, $this->attr, $this->line, $this->col, $this->armor); - $end = new HTMLPurifier_Token_End($this->name, array(), $this->endLine, $this->endCol, $this->endArmor); - //$end->start = $start; - return array($start, $end); - } - } -} - diff --git a/library/HTMLPurifier/Node/Text.php b/library/HTMLPurifier/Node/Text.php deleted file mode 100644 index aec916647..000000000 --- a/library/HTMLPurifier/Node/Text.php +++ /dev/null @@ -1,54 +0,0 @@ -data = $data; - $this->is_whitespace = $is_whitespace; - $this->line = $line; - $this->col = $col; - } - - public function toTokenPair() { - return array(new HTMLPurifier_Token_Text($this->data, $this->line, $this->col), null); - } -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3