Casting Twig_Markup to string in Twig
My HTML, or what I thought was HTML, was actually generating an object of type Twig_Markup
rather than a string
, and therefore wasn't passing json
validation.
Hmm. raw
didn't work.
Welcome. My name is Jeremiah John, sf/f author & activist.I tell liberationist stories.. . . More About Me
My HTML, or what I thought was HTML, was actually generating an object of type Twig_Markup
rather than a string
, and therefore wasn't passing json
validation.
Hmm. raw
didn't work.
Well, that's because you can't. For whatever reason.
I can't modify the variables in search-result.html.twig
like so: