Skip to content

Commit 59c40c2

Browse files
fix: Allow newline in sanitized HTML (#5193)
1 parent eb0c62d commit 59c40c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/sanitizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default Service.extend({
2626

2727
// Ensure any changes to the sanitizer rules are set in the rich text editor @ components/widgets/forms/rich-text-editor.js
2828
options: {
29-
allowedTags : ['b', 'strong', 'i', 'em', 'u', 'ol', 'ul', 'li', 'a', 'p'],
29+
allowedTags : ['b', 'strong', 'i', 'em', 'u', 'ol', 'ul', 'li', 'a', 'p', 'br'],
3030
allowedAttributes : ['href', 'rel', 'target']
3131
},
3232

0 commit comments

Comments
 (0)