We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6418dc1 commit de3d219Copy full SHA for de3d219
blog/models.py
@@ -74,7 +74,7 @@ def img(self, url, alt_text):
74
CF = type(self)
75
return {
76
CF.REST: f".. image:: {url}\n :alt: {alt_text}",
77
- CF.HTML: format_html('<img src="{}" alt="{}">', url, alt_text),
+ CF.HTML: f'<img src="{url}" alt="{alt_text}">',
78
CF.MARKDOWN: f"",
79
}[self]
80
0 commit comments