How do I remove invisible “  ” which has been automatically added to code

前端 未结 2 1339
死守一世寂寞
死守一世寂寞 2021-01-27 09:39

I am developing a mobile website in JQuery Mobile and I am fining that at seemingly \'random\' points, the web browser is adding in:

\"  &         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-27 10:20

    I have found the answer, I asked the question on another forum and got this which has solved the issue. I thought I would post here for future reference:

    If you copied from the formatted display in your web browser, rather than using "view source", you now have Unicode \0xA0 characters in your document. Use your text editor to search and remove them. Alternately, you can install a plugin that will highlight non-ASCII characters. (I think there is one called "Unicode Highlighter" - there may be others.)

    (Posted by - watusiware)

    The original forum thread is here.

提交回复
热议问题