Skip to content

Commit

Permalink
fix: MDict with unclosed compact HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Feb 17, 2024
1 parent ca4d1e1 commit c87822c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app/dicts/mdict/html_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _expand_compact_html(self, compact_html: str) -> str:
pos = m.end()
if len(buf) > 0:
buf.append(last_end_tag)
buf.append(compact_html[pos:])
return ''.join(buf)
else:
return compact_html
Expand Down

0 comments on commit c87822c

Please sign in to comment.