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