Skip to content

Commit

Permalink
feat: allow more attributes in a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed Jun 27, 2023
1 parent f3a84ca commit 8d68324
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html_xblock/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""HTML XBlock module."""
from .html import ExcludedHTML5XBlock, HTML5XBlock

__version__ = "1.3.4"
__version__ = "1.3.5"
5 changes: 4 additions & 1 deletion html_xblock/bleaching.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _get_allowed_attributes(self):
"""
attributes = {
'*': ['class', 'style', 'id'],
'a': ['href', 'title', 'target', 'rel'],
'a': ['href', 'title', 'target', 'rel', 'data-toggle', 'role', 'aria-expanded', 'aria-controls'],
'abbr': ['title'],
'acronym': ['title'],
'audio': ['controls', 'autobuffer', 'autoplay', 'src'],
Expand Down Expand Up @@ -162,8 +162,11 @@ def _get_allowed_styles(self):
"width",
'border',
'border-style',
'margin',
'margin-left',
'margin-right',
'margin-top',
'margin-bottom',
'padding-left',
'padding-right',
]
Expand Down

0 comments on commit 8d68324

Please sign in to comment.