xslt, javascript and unescaped html entities

前端 未结 5 720
遇见更好的自我
遇见更好的自我 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:08

    If the xsl:output method is html, the CDATA section would work. If the xsl:output method is xml, the < and > signs would still be converted.

    To get around this problem, you may define the script element to not behave this way using the xsl:output element. you can also force the method of the output using xml or html

    
    ...
    
    

提交回复
热议问题