From ccb0627ae7ea8cf1fbc9217482b1661a58c3578b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 15 Oct 2016 20:51:38 +0100 Subject: [PATCH] rename variable to make sense --- plugins/metatags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/metatags.py b/plugins/metatags.py index eca0585..8e6e28c 100644 --- a/plugins/metatags.py +++ b/plugins/metatags.py @@ -8,10 +8,10 @@ def get_content_type(instance): def html_to_raw(html): - summary = BeautifulSoup(html, "html.parser") - for script in summary(["script", "style"]): # Remove extra tags + parsed = BeautifulSoup(html, "html.parser") + for script in parsed(["script", "style"]): # Remove extra tags script.extract() - return summary.get_text() + return parsed.get_text() def get_twiter_tags(instance):