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 )