[Tutor] hi

Kent Johnson kent37 at tds.net
Sat Aug 5 00:53:11 CEST 2006

anil maran wrote:
> i have a textbox in a webform
> i save it in postgres
> in postgres, it has several newlines and it is properly displayed
> when i redisplay using cheetah
> it just displays in a single line and looks ugly
> is there a simple way to replace newlines with <br >

s.replace('\n', '<br>')


More information about the Tutor mailing list