How do I insert a formatted javascript to have newline in php?
I want my script to display this way but I can't seem to echo newlines.
The script is inserted into the html in one line.
<script>
var a;
var b;
</script>
It comes out this way:
<script> var a; var b; </script>
How can i do this ?