On Jun 13, 3:32 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote:
[...]
> I don't think browsers ever put a \r before the \n in textareas, but I
> couldn't swear to it, so if it were me I'd probably hedge my bets and
> optionally include it:
>
>     after = before.escapeHTML().replace(/\r?\n/g, "<br/>");

"<br/>" should really be "<br>" 99% of the time ; )

[...]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to