my browser is showing my html code in a single line like this when it's running in a remote host:
<html><head><title></title></head><body><script>/**code**/</script></body></html>
When I run it in local host, it shows it as I wrote it, like this:
<html>
<head>
<title></title>
</head>
<body>
<script>
/**code**/
</script>
</body>
</html>
This is making my website work incorrectly since I have single line comments on my JavaScript code.
When the browser turns all my code into a single line, it messes everything up because all the code that goes after the comments is ignored.
This only happens in remote host.
In local host everything runs fine.
Does anybody know why this is happening?
Thank you
Aucun commentaire:
Enregistrer un commentaire