How this tool computes its result
Escaping: applies sequential regex replacements to add backslashes: backslash -> double-backslash, newline -> backslash-n, carriage return -> backslash-r, tab -> backslash-t, form feed -> backslash-f, backspace -> backslash-b, double quote -> backslash-double-quote, single quote -> backslash-single-quote. Unescaping: wraps the input string in double quotes, escapes any pre-existing backslashes and quotes to prevent parse errors, then runs JSON.parse() on the wrapped string, which automatically decodes all escape sequences.
