Answer the question
In order to leave comments, you need to log in
How to encode tab character?
How can tab characters be encoded? For example: I am writing a parser for app.css files and I need to format the code so that it can be edited later (this is just an example).
For example, here is what happens with the selector and its property:
css += '.my-class ' + "{\n";
css += prop + ': ' + val + ";\n";
css += "}\n";
.my-class {
display: none;
}
.my-class {
display: none;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question