Skip to content

Commit de3d219

Browse files
committed
Remove SafeText from url so it can be escaped
1 parent 6418dc1 commit de3d219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def img(self, url, alt_text):
7474
CF = type(self)
7575
return {
7676
CF.REST: f".. image:: {url}\n :alt: {alt_text}",
77-
CF.HTML: format_html('<img src="{}" alt="{}">', url, alt_text),
77+
CF.HTML: f'<img src="{url}" alt="{alt_text}">',
7878
CF.MARKDOWN: f"![{alt_text}]({url})",
7979
}[self]
8080

0 commit comments

Comments
 (0)