This commit is contained in:
wea_ondara
2020-05-03 12:01:38 +02:00
parent 9d195f0f68
commit 4df2de7970

View File

@@ -12,6 +12,7 @@ import gc
TAG_RE = re.compile(r'<[^>]+>') TAG_RE = re.compile(r'<[^>]+>')
TAG_CODE = re.compile(r'<code.+</code>') TAG_CODE = re.compile(r'<code.+</code>')
TAG_MATH = re.compile(r'<span class="math-container".+</span>')
printnoln = lambda text: print(text, end='', flush=True) printnoln = lambda text: print(text, end='', flush=True)
rprint = lambda text: print('\r' + text) rprint = lambda text: print('\r' + text)
@@ -288,4 +289,4 @@ def setprop(dic, key, value):
def removetags(text): def removetags(text):
return TAG_RE.sub('', TAG_CODE.sub('', text)) return TAG_RE.sub('', TAG_MATH.sub('', TAG_CODE.sub('', text)))