aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Form/HTMLElement.php
blob: 41c01993411609e678a22f6d2ecbffd4285c81d0 (plain) (blame)
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
30
31
<?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();
    }
}