On 13 Oct 2007, at 23:10, Ken wrote:
> in my app, i write like this:
>
> # code.py
> def make_html(c):
> return c.replace('\r\n', '<br />')
You can change this to:
return web.websafe(c).replace('\r\n', '<br />')
And then keep
$:make_html(entry.excerpt)
That'll explicitly call web.py's websafing function *before* you do
the linebreak transform.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---