Safely Encoding Any String Into JavaScript Code Using JavaScript

Adrian Sutton