From 2893f8fa49473177eb60be423e061d705a0b6323 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Tue, 8 Aug 2023 02:32:38 -0700 Subject: [PATCH] Fix incorrect passing of flags to re.sub --- feedparser/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedparser/html.py b/feedparser/html.py index bbb90389..826e4a11 100644 --- a/feedparser/html.py +++ b/feedparser/html.py @@ -152,7 +152,7 @@ def feed(self, data): :rtype: None """ - data = re.sub(r"\s]+?)\s*/>", self._shorttag_replace, data) data = data.replace("'", "'") data = data.replace(""", '"')