Skip to content

Commit cb90afa

Browse files
committed
prioritize textContent
1 parent 5238d39 commit cb90afa

File tree

1 file changed

+1
-1
lines changed
  • packages/block-library/src/post-excerpt

1 file changed

+1
-1
lines changed

packages/block-library/src/post-excerpt/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function PostExcerptEditor( {
5454
renderedExcerpt,
5555
'text/html'
5656
);
57-
return document.body.innerText || '';
57+
return document.body.textContent || document.body.innerText || '';
5858
}, [ renderedExcerpt ] );
5959
if ( ! postType || ! postId ) {
6060
return (

0 commit comments

Comments
 (0)