Nette\Utils\Html from string?

Notice: This thread is very old.
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 (2015-06-16 15:30)