jmreicha jmreicha - 11 months ago 109
Javascript Question

How to nest these quotes?

I am trying to get the following code to work using nested quotes but I don't know how to triple nest them. Here's the code I have so far but it isn't working, I get

Runtime.evaluate threw exception: SyntaxError: Unexpected token &
when I run it.


It seems like there should be a better way to do this but I'm not familiar enough with Javascript

Answer Source

Just escape them: