wip
This commit is contained in:
@@ -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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user