How To Replace < with> with > using jquery

前端 未结 10 786
鱼传尺愫
鱼传尺愫 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条回答
  •  Happy的楠姐
    2020-12-13 21:00

    Try This:-

    var wrapper=$(".contentwrap").html();
      wrapper=wrapper.replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&');
     $(".contentwrap").html(wrapper);
    

提交回复
热议问题