I am using Ember js to render the main content in my web app. Ember uses Handlebars for templates. The main contest contains html tags and script tags. I have escaped the html tags in my handlebars variable using triple braces. This ensures that html tag in the content is parsed by the browser after the template is rendered. My doubt is that why is the script tag not executed by Javascript parser after the template is rendered. When I inspect via Chrome Inspector, the script tag is present in the content, but not parsed by Javascript. Is there any specific reason for this behavior.
Aucun commentaire:
Enregistrer un commentaire