Experimenting with escape characters has been a fascinating experience for me.
<img src="x" onerror=alert('hello'); />
<img src="x" onerror="alert(\"hello\")" />
The second code snippet triggers an illegal character
error in the developer console. What is causing this issue? Why am I unable to utilize the escape character?
Check out the demonstration: http://jsfiddle.net/h7nnk/1/