From 709465b0fcfc7d654408e1645ecc8119066e539f Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 9 Feb 2025 21:29:41 +0300 Subject: [PATCH] fix tg links --- post_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/post_parser.py b/post_parser.py index 5a87300..77f8b15 100644 --- a/post_parser.py +++ b/post_parser.py @@ -317,6 +317,7 @@ class PostParser: html, tags=allowed_tags, attributes=allowed_attributes, + protocols=['http', 'https', 'tg'], css_sanitizer=css_sanitizer, strip=True, )