diff libervia/backend/plugins/plugin_misc_text_syntaxes.py @ 4384:33468e175ade

backend: various fixes, and type hints improvments.
author Goffi <goffi@goffi.org>
date Sun, 03 Aug 2025 23:36:22 +0200
parents 2e3ce128973c
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_misc_text_syntaxes.py	Sun Aug 03 23:35:21 2025 +0200
+++ b/libervia/backend/plugins/plugin_misc_text_syntaxes.py	Sun Aug 03 23:36:22 2025 +0200
@@ -404,7 +404,7 @@
         """
         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