merge changes from ...
This commit is contained in:
commit
dc56e05b3f
3 changed files with 8 additions and 11 deletions
|
|
@ -138,10 +138,6 @@ def decodeHtml(html):
|
|||
>>> decodeHtml('me & you and $&%')
|
||||
u'me & you and $&%'
|
||||
"""
|
||||
return htmldecode(html)
|
||||
|
||||
def htmldecode(text):
|
||||
"""Decode HTML entities in the given text."""
|
||||
if type(text) != unicode:
|
||||
text = unicode(text)[:]
|
||||
if type(text) is unicode:
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ def findRe(string, regexp):
|
|||
return result[0].strip()
|
||||
return ''
|
||||
|
||||
findRegexp = findRe
|
||||
|
||||
def findString(string, string0='', string1 = ''):
|
||||
"""Return the string between string0 and string1.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue