summaryrefslogtreecommitdiff
path: root/platform/www/inc/Form/HTMLElement.php
blob: 591cf472f97578aa829b7b19981d8b6a271b7432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace dokuwiki\Form;

/**
 * Class HTMLElement
 *
 * Holds arbitrary HTML that is added as is to the Form
 *
 * @package dokuwiki\Form
 */
class HTMLElement extends ValueElement {


    /**
     * @param string $html
     */
    public function __construct($html) {
        parent::__construct('html', $html);
    }

    /**
     * The HTML representation of this element
     *
     * @return string
     */
    public function toHTML() {
        return $this->val();
    }
}