xslt, javascript and unescaped html entities

前端 未结 5 709
遇见更好的自我
遇见更好的自我 2020-11-30 14:48

i have a tiny little problem with xslt, js and html entities, eg. within a template:



        
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 15:23

    The CDATA blocks should have worked; they always have for me. What's your disable-output-escaping value?

    UPDATE: Using Xalan, with disable-output-escaping on its default, which I'm pretty sure is no, I have the following in my working XSL files:

    • No CDATA block:

      for (var i = 0; i `<` foo.length; i++) {
      …
      }
      
    • CDATA block:

      
      

提交回复
热议问题