I am processing HTML using Python and the BeautifulSoup 4 library and I can't find an obvious way to replace
with a space. Instead it seems to be converted to a Unicode non-breaking space character.
Am I missing something obvious? What is the best way to replace with a normal space using BeautifulSoup?
Edit to add that I am using the latest version, BeautifulSoup 4, so the convertEntities=BeautifulSoup.HTML_ENTITIES
option in Beautiful Soup 3 isn't available.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…