parsing html containing   (non-breaking space)

前端 未结 6 1679
轻奢々
轻奢々 2020-12-16 23:19

I am using rvest to parse a website. I\'m hitting a wall with these little non-breaking spaces. How does one remove the whitespace that is created by the

6条回答
  •  感动是毒
    2020-12-17 00:12

    I have run into the same problem, and have settled on the simple substitution of

    gsub(intToUtf8(160),'',bodytext)
    

    (Edited to correct case.)

提交回复
热议问题