mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ function ampContent() {
|
||||||
cleanHTML = sanitizeHtml(ampHTML, {
|
cleanHTML = sanitizeHtml(ampHTML, {
|
||||||
allowedTags: allowedAMPTags,
|
allowedTags: allowedAMPTags,
|
||||||
allowedAttributes: allowedAMPAttributes,
|
allowedAttributes: allowedAMPAttributes,
|
||||||
selfClosing: ['source', 'track']
|
selfClosing: ['source', 'track', 'br']
|
||||||
});
|
});
|
||||||
|
|
||||||
return new SafeString(cleanHTML);
|
return new SafeString(cleanHTML);
|
||||||
|
|
Loading…
Add table
Reference in a new issue