title: Salesforce: utility to escape char from vf page?
body: <p>When passing value from salesforce to javascript I can simple do 
  var test = '{!myname}';
  But how can i escape this so that I can take care of name with symbol like single quote? 
  I noticed String.escapeSingleQuote exists but can only be used in class not in vfpage</p>