-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
In the Image Uploads admin, the "Raw HTML" button should escape the contents of its data-clipboard-content
attribute. Otherwise this creates malformed HTML.
Here I think:
djangoproject.com/blog/admin.py
Lines 80 to 83 in 9c2e5a7
source = contentformat.img(obj.image.url, obj.alt_text) | |
return format_html( | |
'<button type="button" data-clipboard-content="{}">{}</button>', | |
source, |
Assigning to @vladimir-slavov-iob!