Before asking, I have searched Stack Overflow many times, and I google it a thousand times. Any other case that I have ever seen has helped me.
Go to my problem:
I am trying to use the following script in my code:
<script type='text/javaScript'> document.write("<script src='/feeds/posts/default/-/"+hom_cat1+"?max-results=1&orderby=published&alt=json-in-script&callback=showhomeposts1'></script>"); </script>
But I use Blogger, and it does not correctly define my code (note the red script closing tag):

However, I cannot save the template. Therefore, I am trying to use the conversion of my code into HTML objects using this website . When I code, put this in your template and save, I get:
Uncaught SyntaxError: Unexpected token ILLEGAL
Here's the encoded string I'm trying to use:
<script type='text/javaScript'>document.write("<script src='/feeds/posts/default/-/"+hom_cat1+"?max-results=1&orderby=published&alt=json-in-script&callback=showhomeposts1'></script>");</script>
What can I do to solve my problem?
javascript html-entities html-escape-characters
Paladini
source share