fix(api): Add href to protected attributes
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
This commit is contained in:
parent
af6b5c3843
commit
101b1b6a23
|
@ -308,7 +308,7 @@ HTMl_CLEANER = bleach.sanitizer.Cleaner(strip=True, tags=SAFE_TAGS)
|
||||||
HTML_PERMISSIVE_CLEANER = bleach.sanitizer.Cleaner(
|
HTML_PERMISSIVE_CLEANER = bleach.sanitizer.Cleaner(
|
||||||
strip=True,
|
strip=True,
|
||||||
tags=SAFE_TAGS + ["h1", "h2", "h3", "h4", "h5", "h6", "div", "section", "article"],
|
tags=SAFE_TAGS + ["h1", "h2", "h3", "h4", "h5", "h6", "div", "section", "article"],
|
||||||
attributes=["class", "rel", "alt", "title"],
|
attributes=["class", "rel", "alt", "title", "href"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# support for additional tlds
|
# support for additional tlds
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fixed an issue which caused links in Markdown forms to not render correctly. (#2023)
|
Loading…
Reference in New Issue