How can i protect text format ?
Amit Khemka
khemkaamit at gmail.com
Tue Oct 23 09:50:11 EDT 2007
On 10/23/07, Abandoned <besturk at gmail.com> wrote:
> Hi..
> I want to do a forum with python but i have a problem..
>
> I have a <textarea> and i write:
> line 1 hi
> line 2 how r u
>
> And then i save to this database ( colomn data type is text)
> And than it looks "line 1 hi line 2 how r u"..
> How can i protect \n characters ?
I don't think the issue has anything to do with python.
I guess while you are displaying the text into an HTML page the "\n"
characters should be replaced by "<br />" to appear as newlines.
Cheers,
--
Amit Khemka
More information about the Python-list
mailing list