Sorry my mistake. I mean: {{=XML(htmlobject, sanitize=True|False)} #not escape
Bruno Rocha http://about.me/rochacbruno/bio 2011/1/27 Bruno Rocha <rochacbr...@gmail.com> > Try XML with escape set to True/False > > {{=XML(htmlobject, escape=True|False)}} > > > -- > Bruno Rocha > http://about.me/rochacbruno/bio > > > 2011/1/27 Ed Greenberg <greenberg...@gmail.com> > > I have a controller function that we can call "next()" since that's >> what it is called :) >> >> I have created a block of html in that function, contained in a >> string. >> >> I'd like to return it to the user so he can reuse it (not just view it >> in the browser.) >> >> Sending it to the browser causes the various special characters of >> html to be converted to entities (like ampersand-gt-semicolon.) >> >> I think what I need to do is return it as type text/plain or as type >> application/octet-stream. >> >> How do I construct the dict that I am going to return in the >> controller function so that web2py will know what to send to the user? >> >> Thanks, >> >> Ed G > > >