From 1c7ed30d65d6cbbab17070d1c849c09e885557f6 Mon Sep 17 00:00:00 2001 From: Kylie <84819232+EvilDrPurple@users.noreply.github.com> Date: Sat, 31 Jul 2021 19:54:59 -0400 Subject: [PATCH 1/3] Update sanitize_html.py --- bookwyrm/sanitize_html.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bookwyrm/sanitize_html.py b/bookwyrm/sanitize_html.py index 1a8540e3..0be64c58 100644 --- a/bookwyrm/sanitize_html.py +++ b/bookwyrm/sanitize_html.py @@ -26,8 +26,6 @@ class InputHtmlParser(HTMLParser): # pylint: disable=abstract-method self.output = [] # if the html appears invalid, we just won't allow any at all self.allow_html = True - self.output.append(("data", "")) - self.output.append(("data", "")) def handle_starttag(self, tag, attrs): """check if the tag is valid""" @@ -58,7 +56,6 @@ class InputHtmlParser(HTMLParser): # pylint: disable=abstract-method def get_output(self): """convert the output from a list of tuples to a string""" - self.output.append(("data", "")) if self.tag_stack: self.allow_html = False if not self.allow_html: From 3f01cf87880d74d93de3e0b96fe87c71fdf1bf18 Mon Sep 17 00:00:00 2001 From: Kylie <84819232+EvilDrPurple@users.noreply.github.com> Date: Sat, 31 Jul 2021 19:58:12 -0400 Subject: [PATCH 2/3] Update user_card.html --- bookwyrm/templates/directory/user_card.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/directory/user_card.html b/bookwyrm/templates/directory/user_card.html index 34059fa6..3f7c10de 100644 --- a/bookwyrm/templates/directory/user_card.html +++ b/bookwyrm/templates/directory/user_card.html @@ -20,7 +20,7 @@