fixed excessive escaping

This commit is contained in:
Kohsuke Kawaguchi committed 2011-04-12 16:52:52 -07:00
1 parent 8f62f7e479
commit 1c3d9b05b0
3 files changed
+15 -11

No files matched your search

+4
View File
@@ -539,6 +539,10 @@ public class Functions {
return Util.xmlEscape(s);
}
public static String xmlUnescape(String s) {
return s.replace("&lt;","<").replace("&gt;",">").replace("&amp;","&");
}
public static String htmlAttributeEscape(String text) {
StringBuilder buf = new StringBuilder(text.length()+64);
for( int i=0; i<text.length(); i++ ) {