diff --git a/oxutils/html.py b/oxutils/html.py index 23635fe..4eb0af1 100644 --- a/oxutils/html.py +++ b/oxutils/html.py @@ -121,6 +121,9 @@ def cleanHtml(text): # references, a hexadecimal numeric reference, or a named reference). charrefpat = re.compile(r'&(#(\d+|x[\da-fA-F]+)|[\w.:-]+);?') +def decodeHtml(html): + return htmldecode(text) + def htmldecode(text): """Decode HTML entities in the given text.""" if type(text) != unicode: