3 ms·
Best solution is just to put the javascript in another file. Barring that, escape your javascript. Replace < with <, etc. I am not sure CDATA exists in HTML
by devinj 17y ago
Best solution is just to put the javascript in another file. Barring that, escape your javascript. Replace < with <, etc. I am not sure CDATA exists in HTML (I seem to remember it being something for XML and DTDs).