Sanitise description from Open Library
This commit is contained in:
parent
f4a4b59a14
commit
ae5c27f3bb
3 changed files with 7 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
import bleach
|
||||
|
||||
|
||||
def clean(input_text):
|
||||
def clean(input_text: str) -> str:
|
||||
"""Run through "bleach" """
|
||||
return bleach.clean(
|
||||
input_text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue