Revert "🐛 Fixed iframe's appearing weirdly in excerpts"

This reverts commit 27d1457a5b.
This commit is contained in:
Hannah Wolfe 2022-08-10 17:40:46 +01:00
parent 27d1457a5b
commit 8e062e22ed
No known key found for this signature in database
GPG Key ID: AB586C3B5AE5C037
2 changed files with 0 additions and 9 deletions

View File

@ -17,8 +17,6 @@ const baseSettings = {
selectors: [
// Ignore images, equiv ignoreImage: true
{selector: 'img', format: 'skip'},
// Ignore iframes
{selector: 'iframe', format: 'skip'},
// disable uppercase headings, equiv uppercaseHeadings: false
{selector: 'h1', options: {uppercase: false}},

View File

@ -86,12 +86,5 @@ describe('Html to Plaintext', function () {
const {excerpt} = getEmailandExcert(html);
assert.equal(excerpt, expected);
});
it('iframes', function () {
const html = '<!--kg-card-begin: html--><iframe frameborder="0" height="200" scrolling="no" src="https://playlist.megaphone.fm?e=1234567" width="100%"></iframe><!--kg-card-end: html--><p>Hello world.</p>';
const expected = 'Hello world.';
const {excerpt} = getEmailandExcert(html);
assert.equal(excerpt, expected);
});
});
});