fix internal use of fixAmpersands

This commit is contained in:
j 2008-06-18 22:01:44 +02:00
parent ff477eda17
commit ce35bf5642

View file

@ -113,7 +113,7 @@ def cleanHtml(text):
text = normalizeNewlines(text)
text = re.sub(r'<(/?)\s*b\s*>', '<\\1strong>', text)
text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text)
text = fix_ampersands(text)
text = fixAmpersands(text)
# Remove all target="" attributes from <a> tags.
text = link_target_attribute_re.sub('\\1', text)
# Trim stupid HTML such as <br clear="all">.