fnEncodeJS = function(sString) {
		return sString.replace(rJS, fnJS);
	}
Encode the string for inclusion into a JS string literal.

@function
@since 1.58
@alias module:sap/base/security/encodeJS
@param {string} sString The string to be escaped
@returns {string} The encoded string
@SecValidate {0|return|XSS} validates the given string for a JavaScript contexts
@public