Thank you, it worked. I don't know how I didn't try this
combination...

Thanks!

On Jul 13, 3:51 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> {{=XML (variations[x].content)}}
>
> should do what you want.
>
> On Jul 13, 7:42 am, Tamas <tma...@gmail.com> wrote:
>
> > Hello,
>
> > I'm not sure if I'm doing something wrong or is this some 'feature' in
> > web2py.
>
> > I am storing pieces of HTML in the database, and would like to embed
> > those strings into a page (it is more complicated than this, but the
> > essence is the same).
>
> > My problem is that whatever I do web2py always escapes the HTML. For
> > example I have this in the database:
>
> > 'Welcome to <i>this</i> test page!'
>
> > When I try to output this in a view:
>
> > {{=XML (variations[x].content).xml ()}}
>
> > I just get
>
> > 'Welcome to &lt;i&gt;this&lt;/i&gt; test page!'
>
> > I tried different things (XML without the .xml(), building the XML
> > object in the controller, etc.), but nothing worked.
>
> > How can I output straight HTML from the database to the view?
>
> > Looking forward to any help. Thanks!
>
> > Tamas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to