def return_dis():
   return XML("<hi> there <dude>", escape=True|False)


Em 20/01/2011, às 06:27, encompass <[email protected]> escreveu:

> I have a control function as follows:
> 
> def return_dis():
>    return "<hi> there <dude>"
> 
> Of course it returns it just fine except that I would like to escape
> the < > and any other html stuff.
> Is there something special in web2py for that or should I make my own
> method for that?
> I could make a blank page but I figure there has to be a better way
> then just making a blank .html file.
> 
> BR,
> Jason Brower

Reply via email to