HTMLElement.php 494 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace dokuwiki\Form;
  3. /**
  4. * Class HTMLElement
  5. *
  6. * Holds arbitrary HTML that is added as is to the Form
  7. *
  8. * @package dokuwiki\Form
  9. */
  10. class HTMLElement extends ValueElement
  11. {
  12. /**
  13. * @param string $html
  14. */
  15. public function __construct($html)
  16. {
  17. parent::__construct('html', $html);
  18. }
  19. /**
  20. * The HTML representation of this element
  21. *
  22. * @return string
  23. */
  24. public function toHTML()
  25. {
  26. return $this->val();
  27. }
  28. }