Comment.php 509 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Concrete comment token class. Generally will be ignored.
  4. */
  5. class HTMLPurifier_Token_Comment extends HTMLPurifier_Token
  6. {
  7. public $data; /**< Character data within comment. */
  8. public $is_whitespace = true;
  9. /**
  10. * Transparent constructor.
  11. *
  12. * @param $data String comment data.
  13. */
  14. public function __construct($data, $line = null, $col = null) {
  15. $this->data = $data;
  16. $this->line = $line;
  17. $this->col = $col;
  18. }
  19. }
  20. // vim: et sw=4 sts=4