On Jun 13, 3:32 am, "T.J. Crowder" <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---