code: public static String script(String value) {
          return value != null ? StringEscapeUtils.escapeEcmaScript(value) : value;
      }
docs: Returns the escaped script code of a value (Script escaping to prevent from XSS).
  
  @param value the value to escape
  @return the Script escaped code of the value