import os, re, html
BASE = os.path.dirname(os.path.abspath(__file__))
def clean(raw):
    t = re.sub(r'<script[\s\S]*?</script>',' ',raw); t=re.sub(r'<style[\s\S]*?</style>',' ',t)
    t=re.sub(r'<[^>]+>',' ',t); return html.unescape(re.sub(r'\s+',' ',t)).strip()
raw=open(os.path.join(BASE,'_25_mit-mban.txt'),encoding='utf-8').read()
print(clean(raw))
