chg: refactored global encode() method to JS

This commit is contained in:
Tobi Schäfer 2017-03-19 17:13:20 +01:00
parent 655f965084
commit 12f9e1b1e3
2 changed files with 41 additions and 12 deletions

View file

@ -68,7 +68,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
public void init() {
String[] globalFuncs = {
"renderSkin", "renderSkinAsString", "getProperty",
"authenticate", "createSkin", "format", "encode",
"authenticate", "createSkin", "format",
"encodeXml", "encodeForm", "formatParagraphs",
"getXmlDocument", "getHtmlDocument", "seal",
"getDBConnection", "getURL", "write", "writeln",
@ -453,17 +453,6 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
return new NativeJavaObject(this, obj, null);
}
/**
*
*
* @param obj ...
*
* @return ...
*/
public String encode(Object obj) {
return HtmlEncoder.encodeAll(toString(obj));
}
/**
*
*