Escape </ in script tag contents

后端 未结 4 1236
死守一世寂寞
死守一世寂寞 2021-01-01 19:26

In HTML, tags and entities aren\'t parsed within

4条回答
  •  臣服心动
    2021-01-01 20:17

    More HTML encoding might help? < for the <.

    Difficult to know quite what you are doing with it. If you are not sure of what the content between the script tags might be (looks like you might be trying to use it as a template holder of some sort?) then you could/should use a CDATA section:

    
    

    That should do it. More description could help give a better answer too :)

提交回复
热议问题