1 | |
add a comment
|
3
|
Yes, you could use Twig's
replace filter:
| ||
I have an html saved in my database with a special tag string like [special_tag] and I want to display that html to my twig template at the same time replace the [special_tag] with any html elements.
Is this possible?
| |||
add a comment
|
Yes, you could use Twig's
replace filter:
| |||
raw
:{{ var_html | replace(...) | raw }}
– Crozin Apr 23 '14 at 9:18