Content inserted in views is automatically escaped. To avoid that, use XML(): http://web2py.com/books/default/chapter/29/5#XML.
Note, this can be very dangerous if you're allowing users to enter arbitrary HTML -- in that case, you should at least sanitize the content via XML(..., sanitize=True). Anthony On Tuesday, January 31, 2012 3:46:37 PM UTC-5, HittingSmoke wrote: > > Sorry if this is a dumb question. I'm working on a very basic blog and I'd > run into a hurdle which I thought would be very trivial. I've skimmed the > book looking for an answer but I can't seem to find one. Google searching > turns up nothing but dozens of unrelated results. > > How do I get web2py to parse HTML when pulling fields from the database? > In my blog the post body field should be rendered as HTML so I can do > advanced formatting. This is what I'm working with right now > http://hittingsmoke.com/blog/posts/view/1 > > I feel like this is simple and I'm just overlooking the obvious. Thanks. >