symfony - show iframe from database row in twig symfony2 -
i use twig symfony2
i got following text database:
<iframe src="http://xxx.example.com/embedframe/123456" frameborder=0 width=510 height=400 scrolling=no></iframe>
in twig try show with:
{{ movie.iframe }}
when insert iframe direct in twig-code, iframe shown perfect, when try view variable, view text above.
what did wrong?
twig escapes every output default. output html have use raw
filter. have sure, database output safe.
{{ movie.iframe|raw }}
Comments
Post a Comment