How to properly escape html sent as data in jQuery's .ajax function
问题 UPDATE : Once I looked at the problem in Firebug, I found my mistake immediately. And it was an embarrassing unmatched double quote that I must have deleted somehow. I had been using Chrome's developer window. Very sorry for using up your resources. But, lesson learned! ("I hope.) What is the best way for me to escape html characters that I want to send to my server? I am using jQuery, .ajax(), and jsonp. I'm writing a bookmarklet which sends parts of the current page's html to my server.