Application Framework Reference

Splunk API

escapeBackslash()

The escapeBackslash() method escapes backslash characters found in the specified input string.

Synopsis

results = Splunk.util.escapeBackslash( input )

Parameters

input

String

String to search for backslash characters.

Return Value

String

The input string with any backslash characters escaped.

Example

var input = "foo//bar";
var input = Splunk.util.escapeBackslash(input);
alert(input); // will be "foo////bar"
 

See Also

escapeHtml()