[mod]_python: is there an equivilent to php's nl2br?
I'm getting some text fields from a database that have newlines. Is there a simple way to convert the newlines to <br>\n in [mod_]python?
|
Quote:
Code:
def nl2br(s): |
That's pretty clean. I like it.
Thanks! |
All times are GMT -5. The time now is 08:30 AM. |