I\'m writing a Chrome extension that involves doing a lot of the following job: sanitizing strings that might contain HTML tags, by converting
A bit late to the show, but what's wrong with using encodeURIComponent() and decodeURIComponent()?