Hello!

Try to set textformat to XHTMLUnsafeText.

template->setTemplateText("<iframe ...></iframe", Wt::XHTMLUnsafeText);

You can laso use WText with format=XHTMLUnsafeText for this purpose.

Read this for more info:
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WTemplate.html#a51db0813cc62cac123aaaa9a21c4eaa8
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WText.html#a49fd6775622dd40cd3676f0945723d98

On Sat, Sep 8, 2012 at 6:26 PM, Jordi Rovira <jo...@anticto.com> wrote:
> Hi,
>
>   What is the best way to embed a youtube video, given the standard
> embedding code, like
>
> <iframe width="640" height="360"
> src="http://www.youtube.com/embed/PtmYeXuNd1c"; frameborder="0"
> allowfullscreen></iframe>
>
>   I have tried a WTemplate, but i see the code as text in the page.
>
>   Thanks!
>
> j.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to