How To Replace < with> with > using jquery

前端 未结 10 817
鱼传尺愫
鱼传尺愫 2020-12-13 20:14

I have a page that is part of a backend CRM admin panel. On that page the HTML output comes from some PHP functions that I can\'t access. And that HTML automatically changes

10条回答
  •  孤街浪徒
    2020-12-13 21:09

    Please try this

    .replace(/</g, '<').replace(/>/g, '>') 
    

    to replace these characters globally. I tried this and works like a charm :)

提交回复
热议问题