public static String escapeJavaScript(final String str){
  return StringEscapeUtils.escapeJavaScript(str);
}

public static String escapeJavaScript ( final String str ) { return StringEscapeUtils . escapeJavaScript ( str ) ; }
escape the given string so that it can be safely used inside javascript
