unquote/htmlentities when parsing html...

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@37 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 13 years ago
parent aaad9cd4ec
commit 0fd85e888c

@ -302,7 +302,7 @@ def getImageFilenamesURL(config={}, start='!'):
return images
def undoHTMLEntities(text=''):
text = re.sub('&lt;', '<', text) # i guess only < > & need coversion http://www.w3schools.com/html/html_entities.asp
text = re.sub('&lt;', '<', text) # i guess only < > & " need conversion http://www.w3schools.com/html/html_entities.asp
text = re.sub('&gt;', '>', text)
text = re.sub('&amp;', '&', text)
text = re.sub('&quot;', '"', text)

Loading…
Cancel
Save