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