class ScriptUtils {

    public static String escapeHtml(String string) {
        if (string == null) {
            return null;
        } else {
            return StringEscapeUtils.escapeHtml(string).replace("'", "&apos;").replace("&quot;", "\\u0022");
        }
    }

}