
If you’ve ever tried to add Javascript code into a blog post, such as when displaying a ‘snippet’ for your readers to copy and paste, you’ll no doubt have found that Blogger stops your code snippet being displayed at all. I can only assume this is to stop malicious javascript exploits.
There is a simple online tool that can help you over at eBlog Templates. This tool will convert your javascript code into a form that Blogger / Blogspot will be happy to publish!

Put in your javascript snippet code like so… and click to convert.

Select your converted code, then copy+paste it straight into your blog post.
The tool simply converts characters to their raw HTML form, for instance ‘<‘ becomes ‘<’
The output may look a mess, but once you publish the blog post your web browser will revert the inputted snippet back to the its original state. Blogger and your readers are none the wiser! How handy!













