diff --git a/packages/editor/src/components/post-title/index.js b/packages/editor/src/components/post-title/index.js index b1bfba32b784a3..724711b76f6fc5 100644 --- a/packages/editor/src/components/post-title/index.js +++ b/packages/editor/src/components/post-title/index.js @@ -26,7 +26,6 @@ import { insert, } from '@wordpress/rich-text'; import { useMergeRefs } from '@wordpress/compose'; -import { __unstableStripHTML as stripHTML } from '@wordpress/dom'; /** * Internal dependencies @@ -170,7 +169,7 @@ function PostTitle( { rawText }, forwardedRef ) { ( firstBlock.name === 'core/heading' || firstBlock.name === 'core/paragraph' ) ) { - onUpdate( stripHTML( firstBlock.attributes.content ) ); + onUpdate( firstBlock.attributes.content ); onInsertBlockAfter( content.slice( 1 ) ); } else { onInsertBlockAfter( content );