mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 00:52:36 +03:00
Revert "🐛 Fixed iframe's appearing weirdly in excerpts"
This reverts commit 27d1457a5b
.
This commit is contained in:
parent
27d1457a5b
commit
8e062e22ed
@ -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}},
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user