I have a textarea which I want to populate with some text.

I have the text in a property that Velocity has access to.

The template looks like this:
document.DeliciousPoster.PostTemplate.value = '$data.DefaultPostTemplate';

Which would be fine - except that "DefaultPostTemplate" contains multiple lines, which breaks javascript.

What's best practice for dealing with this? Remove new line characters in Java, and then put them back in in JS?

Or something else?

Thanks for any advice you can offer.

Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to