Skip to content

Commit

Permalink
Add 'target' attribute to the Bleach allowed attributes (#911) (#912)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <lorenzett@gis3w.it>
(cherry picked from commit 452edb9)

Co-authored-by: Walter Lorenzetti <lorenzetti@gis3w.it>
  • Loading branch information
github-actions[bot] and wlorenzetti authored Jul 23, 2024
1 parent 27c98ad commit 595624c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g3w-admin/base/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
BLEACH_ALLOWED_TAGS = ['p', 'b', 'i', 'u', 'em', 'strong', 'a', 'br', 'table', 'tr', 'td', 'th', 'b', 'ul', 'li', 'ol',
'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'pre', 'blockquote', 'tbody', 'theader', 'tfooter', 'span']
BLEACH_STRIP_TAGS = True
BLEACH_ALLOWED_ATTRIBUTES = ['href', 'title', 'style', 'src']
BLEACH_ALLOWED_ATTRIBUTES = ['href', 'title', 'style', 'src', 'target']
BLEACH_ALLOWED_STYLES = [
'background-color', 'color', 'font-size'
]
Expand Down

0 comments on commit 595624c

Please sign in to comment.