Hi I have a problem with a javascript string
var foo = \"<a href="javascript(foo('a','b'))">test</a>\"
This sentence gives me an error
I could have escaped inner ” but I am not allowed to change <a href="javascript(foo('a','b'))">test</a> this part
Is there any way to handle this condition?
Thanks,
Sourabh
Either escape the quotes within JavaScript:
Or escape the quotes within HTML: