So I’ve working on a website and i’m just doing the finishing touches, I’ve used a lot of javascript on this and it keeps showing within the print version of the site… even if I comment it out, I was just wondering if anyone was aware of a way of removing javascript from the print version of the site easily, and if it’s any help, the site is written in PHP.
Thanks for reading.
EDIT:
The javascript itself is not running, its directly showing the code itself, rather than running it, and if possible I would like to remove all the javascript elements entirely.
Can you try this PHP code:
It removes all script tags from inside. Now you can print it…