Commits

Anonymous committed abbcd47

add escape method for javascript

  • Participants
  • Parent commits 132d2c3

Comments (0)

Files changed (1)

org/nrg/xdat/turbine/utils/TurbineUtils.java

     }
     
     public String escapeHTML(String o){
-    	return StringEscapeUtils.escapeHtml(o);
+    	return (o==null)?null:StringEscapeUtils.escapeHtml(o);
+    }
+    
+    public String escapeJS(String o){
+    	return (o==null)?null:StringEscapeUtils.escapeJavaScript(o);
     }
 }