This method escapes a String for use in Javascript. This code was adapted from Studio's code (Patrick Corcoran)
String the escaped version of the input
GeneralHelpers Class | com.plumtree.uiinfrastructure.statichelpers Namespace