aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-21 15:43:14 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-21 15:43:14 +0100
commitd4949327efa15b492cab1bef3fe074290a328a17 (patch)
treee89e0322bb1f1b06d663fd10fdded21bac867e5d /inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php
parentc9bd17a1007bb78e5de0775efca01df0fb515031 (diff)
downloadwallabag-d4949327efa15b492cab1bef3fe074290a328a17.tar.gz
wallabag-d4949327efa15b492cab1bef3fe074290a328a17.tar.zst
wallabag-d4949327efa15b492cab1bef3fe074290a328a17.zip
[add] HTML Purifier added to clean code
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php')
-rw-r--r--inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php
new file mode 100644
index 00000000..d7dcf623
--- /dev/null
+++ b/inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php
@@ -0,0 +1,49 @@
1<?php
2
3/**
4 * Abstract base node class that all others inherit from.
5 *
6 * Why do we not use the DOM extension? (1) It is not always available,
7 * (2) it has funny constraints on the data it can represent,
8 * whereas we want a maximally flexible representation, and (3) its
9 * interface is a bit cumbersome.
10 */
11abstract class HTMLPurifier_Node
12{
13 /**
14 * Line number of the start token in the source document
15 * @type int
16 */
17 public $line;
18
19 /**
20 * Column number of the start token in the source document. Null if unknown.
21 * @type int
22 */
23 public $col;
24
25 /**
26 * Lookup array of processing that this token is exempt from.
27 * Currently, valid values are "ValidateAttributes".
28 * @type array
29 */
30 public $armor = array();
31
32 /**
33 * When true, this node should be ignored as non-existent.
34 *
35 * Who is responsible for ignoring dead nodes? FixNesting is
36 * responsible for removing them before passing on to child
37 * validators.
38 */
39 public $dead = false;
40
41 /**
42 * Returns a pair of start and end tokens, where the end token
43 * is null if it is not necessary. Does not include children.
44 * @type array
45 */
46 abstract public function toTokenPair();
47}
48
49// vim: et sw=4 sts=4