From 57ccd459732965b5dc373a5309d7897e6f841042 Mon Sep 17 00:00:00 2001 From: Rolux Date: Thu, 1 May 2008 00:03:38 +0200 Subject: [PATCH] adding decodeHtml, htmldecode deprecated --- oxutils/html.py | 3 +++ 1 file changed, 3 insertions(+) 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: