mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
[add] HTML Purifier added to clean code
This commit is contained in:
parent
c9bd17a100
commit
d4949327ef
362 changed files with 31430 additions and 0 deletions
36
inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Comment.php
vendored
Normal file
36
inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Comment.php
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Concrete comment node class.
|
||||
*/
|
||||
class HTMLPurifier_Node_Comment extends HTMLPurifier_Node
|
||||
{
|
||||
/**
|
||||
* Character data within comment.
|
||||
* @type string
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @type bool
|
||||
*/
|
||||
public $is_whitespace = true;
|
||||
|
||||
/**
|
||||
* Transparent constructor.
|
||||
*
|
||||
* @param string $data String comment data.
|
||||
* @param int $line
|
||||
* @param int $col
|
||||
*/
|
||||
public function __construct($data, $line = null, $col = null)
|
||||
{
|
||||
$this->data = $data;
|
||||
$this->line = $line;
|
||||
$this->col = $col;
|
||||
}
|
||||
|
||||
public function toTokenPair() {
|
||||
return array(new HTMLPurifier_Token_Comment($this->data, $this->line, $this->col), null);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue