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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -