backend: various fixes, and type hints improvments.
This commit is contained in:
parent
cab460152c
commit
3dbd990902
1 changed files with 14 additions and 11 deletions
|
|
@ -404,7 +404,7 @@ class TextSyntaxes(object):
|
|||
"""
|
||||
return " ".join(SAFE_CLASSES.intersection(classes_raw.split()))
|
||||
|
||||
def clean_xhtml(self, xhtml):
|
||||
def clean_xhtml(self, xhtml) -> str:
|
||||
"""Clean XHTML text by removing potentially dangerous/malicious parts
|
||||
|
||||
@param xhtml(unicode, lxml.etree._Element): raw HTML/XHTML text to clean
|
||||
|
|
|
|||
Loading…
Reference in a new issue