The escapeBackslash() method escapes backslash characters found in the specified input string.
results = Splunk.util.escapeBackslash( input )
|
input |
String |
String to search for backslash characters. |
|
String |
The input string with any backslash characters escaped. |
var input = "foo//bar"; var input = Splunk.util.escapeBackslash(input); alert(input); // will be "foo////bar"