rename variable to make sense
This commit is contained in:
parent
ba661269e2
commit
ccb0627ae7
1 changed files with 3 additions and 3 deletions
|
@ -8,10 +8,10 @@ def get_content_type(instance):
|
||||||
|
|
||||||
|
|
||||||
def html_to_raw(html):
|
def html_to_raw(html):
|
||||||
summary = BeautifulSoup(html, "html.parser")
|
parsed = BeautifulSoup(html, "html.parser")
|
||||||
for script in summary(["script", "style"]): # Remove extra tags
|
for script in parsed(["script", "style"]): # Remove extra tags
|
||||||
script.extract()
|
script.extract()
|
||||||
return summary.get_text()
|
return parsed.get_text()
|
||||||
|
|
||||||
|
|
||||||
def get_twiter_tags(instance):
|
def get_twiter_tags(instance):
|
||||||
|
|
Reference in a new issue