Skip to content

Commit

Permalink
fix(api): Remove space when stripping HTML tags in texts API
Browse files Browse the repository at this point in the history
  • Loading branch information
saengel committed Jul 4, 2024
1 parent bc5fffb commit b34cd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sefaria/model/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,11 +1174,11 @@ def remove_html(t):
if isinstance(t, list):
for i, v in enumerate(t):
if isinstance(v, str):
t[i] = re.sub('<[^>]+>', " ", v)
t[i] = re.sub('<[^>]+>', "", v)
else:
t[i] = AbstractTextRecord.remove_html(v)
elif isinstance(t, str):
t = re.sub('<[^>]+>', " ", t)
t = re.sub('<[^>]+>', "", t)
else:
return False
return t
Expand Down

0 comments on commit b34cd3c

Please sign in to comment.