I've looked around but couldn't find an answer to this.
How can I echo a script tag that has an src attribute? When I try this:
echo '<script type="text/javascript" src="script.js">document.writeln(3);
</script>';
the code fails.
But when I do this and remove the src tag:
echo '<script type="text/javascript">document.writeln(3);</script>'
the code works.
what am I overlooking and how can I make the first version work?