Skip to content

Commit dcb8833

Browse files
authored
🐛 Fixed signup card in post plaintext and email preheader (#17163)
fixes https://github.com/TryGhost/Team/issues/3542 The signup card text was included in the post plaintext/excerpt and email preheader
1 parent 0a70f7f commit dcb8833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/html-to-plaintext/lib/html-to-plaintext.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ const loadConverters = () => {
5353
// Don't output hrs
5454
{selector: 'hr', format: 'skip'},
5555
// Don't output > in blockquotes
56-
{selector: 'blockquote', format: 'block'}
56+
{selector: 'blockquote', format: 'block'},
57+
// Don't include signup cards in excerpts
58+
{selector: '.kg-signup-card', format: 'skip'}
5759
]
5860
});
5961

0 commit comments

Comments
 (0)