Merge pull request #4111 from dokuwiki-translate/lang_update_739_1700675130
[dokuwiki.git] / inc / Form / TagOpenElement.php
blob1dbfd0aceab7ea68fdf388bdd49a6c0091da061a
1 <?php
3 namespace dokuwiki\Form;
5 /**
6 * Class TagOpenElement
8 * Creates an open HTML tag. You have to make sure you close it
9 * again or this will produce invalid HTML
11 * @package dokuwiki\Form
13 class TagOpenElement extends ValueElement
15 /**
16 * @param string $tag
17 * @param array $attributes
19 public function __construct($tag, $attributes = [])
21 parent::__construct('tagopen', $tag, $attributes);
24 /**
25 * The HTML representation of this element
27 * @return string
29 public function toHTML()
31 return '<' . $this->val() . ' ' . buildAttributes($this->attrs()) . '>';