JSUtil - unescapeAttr(String text)

Restore ampersands from escaped text.

Table 1. Parameters
Name Type Description
text String The text
Table 2. Returns
Type Description
String The text with escape characters removed.

var attr = "sysparm_query=active=true&sysparm_view=special";
 
gs.print(JSUtil.unescapeAttr(attr));
Output:
sysparm_query=active=true&sysparm_view=special