http://web2py.com/book/default/section/5/2
>>> print DIV <http://web2py.com/book/default/docstring/DIV>("<b>hello</b>") &lt;b&gt;hello&lt;/b&gt; >>> print DIV <http://web2py.com/book/default/docstring/DIV>(XML >>> <http://web2py.com/book/default/docstring/XML>("<b>hello</b>")) <b>hello</b> you need {{ =XML(yourhtmlstring) }}