Why does this javascript line looks like this? I mean, why there's an extra + near the end?
'<script type="text/javascript" src="' + src + '"></' + 'script>'
Source: http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/base.js#511
Because if you have "</script>" inside of a <script> tag, the browser will think you have closed your script tag. It's a pretty common way to include the text </script> inside of a string within <script> tags.
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