Wajahat698 commited on
Commit
799c695
·
verified ·
1 Parent(s): fa30961

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -159,6 +159,8 @@ def clean_text(text):
159
  text = re.sub(r'</i>', '', text)
160
  text = re.sub(r'<span[^>]*>.*?</span>', '', text, flags=re.DOTALL)
161
  text = re.sub(r'<span[^>]*>.*?</span>', '', text, flags=re.DOTALL)
 
 
162
 
163
 
164
 
 
159
  text = re.sub(r'</i>', '', text)
160
  text = re.sub(r'<span[^>]*>.*?</span>', '', text, flags=re.DOTALL)
161
  text = re.sub(r'<span[^>]*>.*?</span>', '', text, flags=re.DOTALL)
162
+ text = re.sub(r'<span class="mord mathnormal"[^>]*>([^<]+)</span>', r'\1', text)
163
+
164
 
165
 
166