Hello!

Text must be valid XML to be shown as HTML.
Test it with http://www.w3schools.com/xml/xml_validator.asp

Try replacing <meta> with <meta />

On Wed, Feb 27, 2013 at 1:07 AM, John Robson <john.rob...@usp.br> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm trying to insert an HTML file.
>
> But it does not show as HTML, but as text.
>
>
> WContainerWidget* cwMain = new WContainerWidget();
>
> string readFile = reading an HTML file
>
> cwMain->addWidget(new WText(readFile));   // try 1
>
> cwMain->addWidget(new WText(readFile, Wt::PlainText));   // try 2
>
> Thank you,
> John
>
> ps: file is attach.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJRLSQBAAoJEOjf7XlrDgBAkgIH/2fjq8yBfbhT2xLi15FP6a2S
> URlyVx/nossnR3YumqfnZWQ6sm4snkd+0IbqtMAvSLs8ur/ZMUtXOLja4CA6m9xY
> wMRg3qYRpvorjDvwoVl8lEMPDJd+Gc4B8lvyX/nSwLdfexm7OhBwlFQQ3dhTiMru
> MsmQAbbgQ5g1rj80DdZCgJGws9FNiNxi+JLWBIkLXU7tkJ+O3DhCMExvdt93iyPj
> jVcJtJimk9E4AhBvQrjdg4YJOCSNLzh23xfWRDCcqfrwdQyPMLz1fOp6UFbl7LYb
> TD7cYKWE62MEKqrDIT+uV0Wg/Jtx3Zxod/GVdxv5hVWB7gkjyywK2lDN1Vy3XiU=
> =Ln5h
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to