<script> tag not executed in Handlebars template even with triple braces
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.
链接地址: http://www.djcxy.com/p/73464.html