Albert> The html.nl2br function appears to do what I want, but it alters
Albert> the data. Meaning, I'm resubmitting the data back into another
Albert> form but it has
tags in it.
Are you calling html.nl2br correctly? It works for me:
>>> from quixote import html
>>> sometext = """
... line 1
... line 2
... line 3
... """
>>> btext = html.nl2br(sometext)
>>> btext
\nline 1
\nline 2
\nline 3
\n'>
>>> sometext
'\nline 1\nline 2\nline 3\n'
sometext is unmodified. That's what I'd insert into the hidden tag.
Skip