I’m not sure if my question is relevant to my problem, since the syntax coloring is playing tricks on me
I want to append HTML to an element.
<a href=\'http://www.google.com\'>link<\/a>
Assume it the the result of calling a helper – getLink
so when I do
var newelem = "<%= getLink %>"
I get " <a href=\'http://www.google.com\'>link<\/a>"
but starting from the // the rest of the line is colored green.. indicating that it is a comment?
Should I (and how) escape this double slash? is it a problem?
I added a picture to illustrate the coloring

chrome was misbehaving.. so marking this question as answered