Skip to content

Commit

Permalink
Site Editor: Decode the site title properly (#49685)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored and Mamaduka committed May 8, 2023
1 parent 1f39704 commit 2e1825b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { __ } from '@wordpress/i18n';
import { store as blockEditorStore } from '@wordpress/block-editor';
import { store as coreStore } from '@wordpress/core-data';
import { forwardRef } from '@wordpress/element';
import { decodeEntities } from '@wordpress/html-entities';

/**
* Internal dependencies
Expand Down Expand Up @@ -97,7 +98,7 @@ const SiteHub = forwardRef( ( props, ref ) => {

{ showLabels && (
<div className="edit-site-site-hub__site-title">
{ siteTitle }
{ decodeEntities( siteTitle ) }
</div>
) }
</HStack>
Expand Down

0 comments on commit 2e1825b

Please sign in to comment.