An escaped character is preceded with a back slash, for example /" is the escaped character code for a double quote. Shown below is the assignment of a string variable that contains double quotes.
var strCat = "\"If you don't know where you're going, any road will get you there\", said Cheshire cat."
You can define a string by placing its characters within single quotes instead of double quotes, then you are permitted to include double quotes within the string, but then any single quotes within the string will need to be escaped.
<script> alert("This string contains a \n new line character."); </script>
Since an html page is required to flow, it does not have tab stops, so the tab character \t will not work. If you need spaces, use one or more (non-breaking space) character codes, but they you will not be able to hold column positions. You might be trying to do something that requires a table.
Learn more at amazon.com