Why is “​” being injected into my HTML?

后端 未结 8 1676

EDIT: You can see the issue here (look in source).

EDIT2: Interesting, it is not an issue in source. Only with the console (Firebug as well).

I have

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 05:25

    I cannot find where it's being injected on my page. I'll investigate it more later, but for now, I just threw this in my page so I can keep working.

    $(function(){
        $('body').contents().eq(0).each(function(){
            if(this.nodeName.toString()=='#text' && this.data.trim().charCodeAt(0)==8203){
                $(this).remove();
            }
        });
    });
    

提交回复
热议问题