Hey Guys,
I am using the escapeHTML() string function in the following manner.
$('divElement').update( stringInput.escapeHTML() );
Now my stringInput is something like "This is a test\nThis should be a
new line!!!"
The \n does not show up as a new line on my HTML page. Was hoping
someone could guide me what a work around could be so that a new line
shows up on my HTML page. I did try putting <br/> instead of
\n. But it just shows up as something weird on the HTML page. Please
help.
P.s: I would still like to keep using escapeHTML, so a solution which
doesn't involve removing escapeHTML from the code would help...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---