Skip to content

Commit

Permalink
recode _normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Jan 17, 2024
1 parent c848467 commit 424adee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duckduckgo_search/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _is_500_in_url(url: str) -> bool:

def _normalize(raw_html: str) -> str:
"""Strip HTML tags from the raw_html string."""
return unescape(re.sub(REGEX_STRIP_TAGS, "", raw_html)) if raw_html else ""
return unescape(REGEX_STRIP_TAGS.sub("", raw_html)) if raw_html else ""


def _normalize_url(url: str) -> str:
Expand Down

0 comments on commit 424adee

Please sign in to comment.