I believe I found the solution I was looking for - escape_javascript (). Seems obvious now, but somehow I hadn't encountered it (and amazingly, none of my searches for "rails javascript unterminated literal string" turned up this useful function. It's part of the Rails JavaScript helpers.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

