Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
import org.joget.commons.util.StringUtil;
 
String html = "<p>This is a test string</p>";
String stripped = StringUtil.stripAllHtmlTag(html);

Fields

TYPE_HTML
public static final java.lang.String TYPE_HTML = "html";

Used for escapeString method for escape format to escape html syntax.

TYPE_JAVA
public static final java.lang.String TYPE_JAVA = "java";

Used for escapeString method for escape format to escape java syntax.

TYPE_JAVASCIPT
public static final java.lang.String TYPE_JAVASCIPT = "javascript";

Used for escapeString method for escape format to escape javascript syntax.

TYPE_JSON
public static final java.lang.String TYPE_JSON = "json";

Used for escapeString method for escape format to escape json syntax.

TYPE_REGEX
public static final java.lang.String TYPE_REGEX = "regex";

Used for escapeString method for escape format to escape regex syntax.

TYPE_SQL
public static final java.lang.String TYPE_SQL = "sql";

Used for escapeString method for escape format to escape sql syntax.

TYPE_XML
public static final java.lang.String TYPE_XML = "xml";

Used for escapeString method for escape format to escape xml syntax.

Methods

addParamsToUrl

...

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 or TYPE_REGEX

replaceMap - A map of keyword and new keyword pair

...