mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
fixed excessive escaping
This commit is contained in:
1 parent
8f62f7e479
commit
1c3d9b05b0
3 files changed
+15
-11
No files matched your search
@@ -539,6 +539,10 @@ public class Functions {
|
||||
return Util.xmlEscape(s);
|
||||
}
|
||||
|
||||
public static String xmlUnescape(String s) {
|
||||
return s.replace("<","<").replace(">",">").replace("&","&");
|
||||
}
|
||||
|
||||
public static String htmlAttributeEscape(String text) {
|
||||
StringBuilder buf = new StringBuilder(text.length()+64);
|
||||
for( int i=0; i<text.length(); i++ ) {
|
||||
|
||||
Reference in new issue
Block a user