diff --git a/packages/block-library/src/post-excerpt/edit.js b/packages/block-library/src/post-excerpt/edit.js index b2daf4bee8230f..4c541f4c391276 100644 --- a/packages/block-library/src/post-excerpt/edit.js +++ b/packages/block-library/src/post-excerpt/edit.js @@ -54,7 +54,7 @@ export default function PostExcerptEditor( { renderedExcerpt, 'text/html' ); - return document.body.innerText || ''; + return document.body.textContent || document.body.innerText || ''; }, [ renderedExcerpt ] ); if ( ! postType || ! postId ) { return (