[Zope] newline_to_br without breaking source code
Peter Bengtsson
mail@peterbe.com
Sat, 16 Feb 2002 21:01:51 +0100
print TheTextWithLineBreaks.replace('\n','<br>')
newline_to_br does:
print TheTextWithLineBreaks.replace('\n','<br>\n')
At 09:01 2002-02-15 +0100, webmaster@winkelmaenner.de wrote:
>Hello,
>
>i want to use a textarea form input in a java script and also in html tags.
>Wenn i use the newline_to_br attribut it works fine in html, but it breaks
>the source code. This is no matter in html, but in javascript.
>
>In javascript i want only the <br> but no linebreak.
>
>Does anybody has an solution for my problem ?
>Thanks Harry
>
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )