(3) Ampersand in External File
- This is an ampersand: &
- If a script contains an ampersand, then remove the script from the XHTML page source.
- Put the script in an external .js file
— external, linked to the XHTML page source:
<script type="text/javascript" src="whatever.js"> </script>
- Why? — The ampersand is used as a symbol in JavaScript, but it is also used as the first character in some delimiters in XHTML. So, we separate them to avoid confusion.
