escapeJS()

The escapeJS() function escapes JavaScript-sensitive characters.

Syntax

escapeJS(expr)
Note:
  1. Return string(expr) with ["'", "\", "\n", "\r"] characters escaped with a "\".