I am writing HTML and JS for a small site. When I write some special words in JS, I encounter a problem.
Here is the sample:
<script Language="javascript" >
var template = {
"role":'<role name="" />',
"script":'<script>xxx</script>'
};
...
</script>
I found that Chrome will parse it wrong. It will ignore the JS text after the file </script> in the template declaration.