Nette\Utils\Html from string?

Notice: This thread is very old.

5 years ago

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

5 years ago

enumag
Member | 2129
+
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)