Response.Right

Convert text/HTML to Server-side Statements
Note: be sure not to use a word that is a reserved keyword in the language you're using, e.g. 'for' or 'do'!
  

Response.Right converts text/HTML to server-side write statements in PHP, ASP (VBScript and JavaScript) and JSP.

You can output the results into a named string variable or directly into write/print statements

This tool is just a time-saver that I put together while getting frustrated trying to work out where to escape double and single quotes should be in server-side write statements; I hope it saves you time too! Thanks to Nigel Peck and Vinnie Garcia for help with the syntax-checking!