You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
494 B

  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. }