JSUtil - unescapeText(String text)

Removes escape characters.

Table 1. Parameters
Name Type Description
text String The text to process.
Table 2. Returns
Type Description
String The the text without escape characters.

var html = "<b>This is my title</b>";
 
gs.print(JSUtil.unescapeText(html));
Output: This is the value returned. If the text is displayed in the application the page, it renders the html tags and displays the text in bold.
<b>This is my title</b>