JavaScript Remove special characters string not working

前端 未结 2 1695
深忆病人
深忆病人 2020-12-22 06:44

I\'m trying to remove special characters that could appear within my Google Analytics tags, as the special characters seem to be causing script errors in some versions of IE

2条回答
  •  隐瞒了意图╮
    2020-12-22 07:29

    The problem is not the function itself, it comes from somewhere else. Proof: http://jsfiddle.net/wDaCw/

提交回复
热议问题