diff --git a/plugins/woocommerce-admin/client/analytics/report/categories/breadcrumbs.js b/plugins/woocommerce-admin/client/analytics/report/categories/breadcrumbs.js index 07865d6a017..6673112322e 100644 --- a/plugins/woocommerce-admin/client/analytics/report/categories/breadcrumbs.js +++ b/plugins/woocommerce-admin/client/analytics/report/categories/breadcrumbs.js @@ -4,6 +4,7 @@ import { Component } from '@wordpress/element'; import { first, last } from 'lodash'; import { Spinner } from '@wordpress/components'; +import { decodeEntities } from '@wordpress/html-entities'; import { Link } from '@woocommerce/components'; import { getNewPath, getPersistedQuery } from '@woocommerce/navigation'; @@ -49,7 +50,9 @@ export default class CategoryBreadcrumbs extends Component { return category ? (
- { this.getCategoryAncestors( category, categories ) } + { decodeEntities( + this.getCategoryAncestors( category, categories ) + ) } - { category.name } + { decodeEntities( category.name ) }
) : ( diff --git a/plugins/woocommerce/changelog/fix-analytics-category-breadcrumbs-html-entities b/plugins/woocommerce/changelog/fix-analytics-category-breadcrumbs-html-entities new file mode 100644 index 00000000000..5f087d9d1e0 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-analytics-category-breadcrumbs-html-entities @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Decode HTML entities in CategoryBreadcrumbs.