Nette\Utils\Html from string?

enumag
Member | 2118
+
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?

enumag
Member | 2118
+
0
-

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

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

Last edited by enumag (16. 6. 2015 15:30)

RSS feed Topic closed