mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
🐛Fixed <br> tag from duplicating in AMP transform (#9502)
closes #9499 - added `br` to self closing tags option for `sanitize-html` when cleaning the ampified HTML
This commit is contained in:
parent
27f12e3d51
commit
25b94bba75
@ -194,7 +194,7 @@ function ampContent() {
|
||||
cleanHTML = sanitizeHtml(ampHTML, {
|
||||
allowedTags: allowedAMPTags,
|
||||
allowedAttributes: allowedAMPAttributes,
|
||||
selfClosing: ['source', 'track']
|
||||
selfClosing: ['source', 'track', 'br']
|
||||
});
|
||||
|
||||
return new SafeString(cleanHTML);
|
||||
|
Loading…
Reference in New Issue
Block a user