I have seen everyone doing it tho i dont' get why.
document.write('<script src="src"><\/script>');
I mean using the single ' you shouldn't need to esacape chars?
</script>
from being parsed as an closing tag."</script>
and "<\/script>
" are the same to JavaScript, but only the first one is interpreted by the HTML parser to contain a HTML closing tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With