1
0
Fork 0

Render hashtag links with data-mention="hashtag" attribute

This commit is contained in:
Christof Dorner 2023-02-18 00:18:32 +01:00
parent 276b255f32
commit f3334b1550
5 changed files with 13 additions and 7 deletions

View file

@ -21,6 +21,6 @@ def clean(input_text):
"ol",
"li",
],
attributes=["href", "rel", "src", "alt"],
attributes=["href", "rel", "src", "alt", "data-mention"],
strip=True,
)