Skip to content

Commit

Permalink
Template List: Decode entities in record titles (#38863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 29, 2022
1 parent 42bbca2 commit 0cddcb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/edit-site/src/components/list/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
VisuallyHidden,
__experimentalHeading as Heading,
} from '@wordpress/components';
import { decodeEntities } from '@wordpress/html-entities';

/**
* Internal dependencies
Expand Down Expand Up @@ -98,8 +99,10 @@ export default function Table( { templateType } ) {
postType: template.type,
} }
>
{ template.title?.rendered ||
template.slug }
{ decodeEntities(
template.title?.rendered ||
template.slug
) }
</Link>
</Heading>
{ template.description }
Expand Down

0 comments on commit 0cddcb1

Please sign in to comment.