adding decodeHtml, htmldecode deprecated
This commit is contained in:
parent
a883b62405
commit
57ccd45973
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue