wip
This commit is contained in:
@@ -11,6 +11,7 @@ from mt import mt
|
||||
import gc
|
||||
|
||||
TAG_RE = re.compile(r'<[^>]+>')
|
||||
TAG_CODE = re.compile(r'<code.+</code>')
|
||||
|
||||
printnoln = lambda text: print(text, end='', flush=True)
|
||||
rprint = lambda text: print('\r' + text)
|
||||
@@ -214,4 +215,4 @@ def setprop(dic, key, value):
|
||||
|
||||
|
||||
def removetags(text):
|
||||
return TAG_RE.sub('', text)
|
||||
return TAG_RE.sub('', TAG_CODE.sub('', text))
|
||||
|
||||
Reference in New Issue
Block a user