Nette\Utils\Html from string?

4 years ago

enumag
Member | 2128
+
0
-

I have a HTML element as a string and I'd like to change it's attributes a little. Does someone has a function which creates \Nette\Utils\Html instance from string?

4 years ago

enumag
Member | 2128
+
0
-

Turns out that Nette is once again smarter than I thought:

\Nette\Utils\Html::el(substr($tag, 1, -1))

Last edited by enumag (2015-06-16 15:30)