@@ -0,0 +1,458 @@
+import re%0Aimport xml.sax.saxutils as xmlutils%0A%0Adef xml_to_plain_text(xml_string):%0A   remove_tags = re.compile(r'%5Cs*%3C.*?%3E', re.DOTALL %7C re.UNICODE)%0A   plain_text = remove_tags.sub('%5Cn', xml_string)%0A   # run this twice for weird situations where things are double escaped%0A   plain_text = xmlutils.unescape(plain_text, %7B'&apos;': %22'%22, '&quot;': '%22'%7D)%0A   plain_text = xmlutils.unescape(plain_text, %7B'&apos;': %22'%22, '&quot;': '%22'%7D)%0A%0A   return plain_text.strip()%0A%0A%0A

Add utils.py which I forgot to add last commit