From 318fb582a89ff187ce89a82ee36beaf5a808f340 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 17 Apr 2007 01:03:55 +0000 Subject: [PATCH] exposed Util.escape to views. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3145 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 093261ef61..6da1f22e42 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -343,6 +343,10 @@ public class Functions { return Util.encode(s); } + public static String escape(String s) { + return Util.escape(s); + } + public static void adminCheck(StaplerRequest req, StaplerResponse rsp, Object required) throws IOException, ServletException { if(required!=null && !Hudson.adminCheck(req,rsp)) { // check failed