diff --git a/oxutils/html.py b/oxutils/html.py index 1856a4d..6ed63f1 100644 --- a/oxutils/html.py +++ b/oxutils/html.py @@ -142,7 +142,7 @@ def htmldecode(text): return uchr(name2codepoint[entity]) else: return match.group(0) - return charrefpat.sub(entitydecode, text) + return charrefpat.sub(entitydecode, text).replace(u'\xa0', ' ') def highlight(text, query, hlClass="hl"): if query: