We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5238d39 commit cb90afaCopy full SHA for cb90afa
packages/block-library/src/post-excerpt/edit.js
@@ -54,7 +54,7 @@ export default function PostExcerptEditor( {
54
renderedExcerpt,
55
'text/html'
56
);
57
- return document.body.innerText || '';
+ return document.body.textContent || document.body.innerText || '';
58
}, [ renderedExcerpt ] );
59
if ( ! postType || ! postId ) {
60
return (
0 commit comments