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?
\Nette\Utils\Html
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)