escape js chars in code example
Example 1: javascript backslash
You have to type a double backslash. Like: \\
Example 2: javascript html special characters
return mystring.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<").replace(/"/g, """);