]>
Commit | Line | Data |
---|---|---|
d4949327 NL |
1 | <?php\r |
2 | \r | |
3 | /**\r | |
4 | * Concrete comment token class. Generally will be ignored.\r | |
5 | */\r | |
6 | class HTMLPurifier_Token_Comment extends HTMLPurifier_Token\r | |
7 | {\r | |
8 | /**\r | |
9 | * Character data within comment.\r | |
10 | * @type string\r | |
11 | */\r | |
12 | public $data;\r | |
13 | \r | |
14 | /**\r | |
15 | * @type bool\r | |
16 | */\r | |
17 | public $is_whitespace = true;\r | |
18 | \r | |
19 | /**\r | |
20 | * Transparent constructor.\r | |
21 | *\r | |
22 | * @param string $data String comment data.\r | |
23 | * @param int $line\r | |
24 | * @param int $col\r | |
25 | */\r | |
26 | public function __construct($data, $line = null, $col = null)\r | |
27 | {\r | |
28 | $this->data = $data;\r | |
29 | $this->line = $line;\r | |
30 | $this->col = $col;\r | |
31 | }\r | |
32 | \r | |
33 | public function toNode() {\r | |
34 | return new HTMLPurifier_Node_Comment($this->data, $this->line, $this->col);\r | |
35 | }\r | |
36 | }\r | |
37 | \r | |
38 | // vim: et sw=4 sts=4\r |