Escapes Special Characters in a string so that they do not cause conflicts. For example, Don't stop me now
becomes Don\'t stop me now
.
Supports the following escape sequences:
\n
(Line feed/newline)
\r
(Carriage return)
\t
(Horizontal tab)
\b
(Backspace)
\f
(Form feed)
\xnn
(Hex, where n is 0-f)
\\
(Backslash)
\'
(Single quote)
\"
(Double quote)
\unnnn
(Unicode character)
\u{nnnnnn}
(Unicode code point)
Unescapes Characters in a string that have been escaped. For example, Don\'t stop me now
becomes Don't stop me now
.
Supports the following escape sequences:
\n
(Line feed/newline)
\r
(Carriage return)
\t
(Horizontal tab)
\b
(Backspace)
\f
(Form feed)
\nnn
(Octal, where n is 0-7)
\xnn
(Hex, where n is 0-f)
\\
(Backslash)
\'
(Single quote)
\"
(Double quote)
\unnnn
(Unicode character)
\u{nnnnnn}
(Unicode code point)