Safely Encoding Any String Into JavaScript Code Using JavaScript

By Adrian Sutton