I generally avoid having to escape quote characters within JavaScript by 
using %Q

%Q| "Some Text ' Containing " ' Quotes |

-- 
Posted via http://www.ruby-forum.com/.