Merge pull request #8619 from Alchez/dev-comment-clean-html
fix: allow bold and underline tags while in outgoing emails
This commit is contained in:
commit
38ffe54c6a
1 changed files with 3 additions and 3 deletions
|
|
@ -10,8 +10,8 @@ def clean_html(html):
|
|||
return html
|
||||
|
||||
return bleach.clean(clean_script_and_style(html),
|
||||
tags=['div', 'p', 'br', 'ul', 'ol', 'li', 'b', 'i', 'em',
|
||||
'table', 'thead', 'tbody', 'td', 'tr'],
|
||||
tags=['div', 'p', 'br', 'ul', 'ol', 'li', 'strong', 'b', 'em', 'i', 'u',
|
||||
'table', 'thead', 'tbody', 'td', 'tr'],
|
||||
attributes=[],
|
||||
styles=['color', 'border', 'border-color'],
|
||||
strip=True, strip_comments=True)
|
||||
|
|
@ -21,7 +21,7 @@ def clean_email_html(html):
|
|||
return html
|
||||
|
||||
return bleach.clean(clean_script_and_style(html),
|
||||
tags=['div', 'p', 'br', 'ul', 'ol', 'li', 'b', 'i', 'em', 'a',
|
||||
tags=['div', 'p', 'br', 'ul', 'ol', 'li', 'strong', 'b', 'em', 'i', 'u', 'a',
|
||||
'table', 'thead', 'tbody', 'td', 'tr', 'th', 'pre', 'code',
|
||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'button', 'img'],
|
||||
attributes=['border', 'colspan', 'rowspan',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue