html - What does '\ ' mean in javascript? -


i got javascript code contains html code inside strings. strings start '\ ' (backslash, space). sequence do?

this weird because strings aren't highlighted html code after '\ ' in intellij idea v14.1.4. here's screenshot of sample-code.

html-highlighting in intellij

those backslashes escapes space character follows.

"\ " same thing " ".

in javascript string can escape character, doesn't need escaping. spaces doesn't need escaping, backslashes doesn't serve purpose in case.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -