How can i protect text format ?
khemkaamit at gmail.com
Tue Oct 23 15:50:11 CEST 2007
On 10/23/07, Abandoned <besturk at gmail.com> wrote:
> 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.
More information about the Python-list