[Zope] newline_to_br without breaking source code
zope-mailinglist
zope-mailinglist@mopa.at
Fri, 15 Feb 2002 10:36:46 +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 )
>
why dont you just remove the linebreaks "\n" from the string with
javascript ?