Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||
---|---|---|
| ||
import org.joget.commons.util.StringUtil; String html = "<p>This is a test string</p>"; String stripped = StringUtil.stripAllHtmlTag(html); |
public static final java.lang.String TYPE_HTML = "html";
Used for escapeString method for escape format to escape html syntax.
public static final java.lang.String TYPE_JAVA = "java";
Used for escapeString method for escape format to escape java syntax.
public static final java.lang.String TYPE_JAVASCIPT = "javascript";
Used for escapeString method for escape format to escape javascript syntax.
public static final java.lang.String TYPE_JSON = "json";
Used for escapeString method for escape format to escape json syntax.
public static final java.lang.String TYPE_REGEX = "regex";
Used for escapeString method for escape format to escape regex syntax.
public static final java.lang.String TYPE_SQL = "sql";
Used for escapeString method for escape format to escape sql syntax.
public static final java.lang.String TYPE_URL = "url";
Used for escapeString method for escape format to encode url parameter value.
public static final java.lang.String TYPE_XML = "xml";
Used for escapeString method for escape format to escape xml syntax.
...
Escape a string based on format and replaced string based on the replace keyword map
Parameters:
format - StringUtil.TYPE_REGEX or StringUtil.TYPE_JSON TYPE_HTML, TYPE_JAVA, TYPE_JAVASCIPT, TYPE_JSON, TYPE_SQL, TYPE_XML, TYPE_URL or TYPE_REGEX. Support chain escaping by separate the format in semicolon (;).
replaceMap - A map of keyword and new keyword pair to be replaced before escaping
public static java.lang.String decryptContent(java.lang.String content)
...
Encrypt all keywords in the content which wrapped in SecurityUtil.ENVELOPE with SecurityUtil.encrypt method.
public static java.util.Map<java.lang.String, java.lang.String[]> getUrlParams(java.lang.String url)
Converts all request parameters in an URL to a map
public static java.lang.String md5(java.lang.String content)
...