diff --git a/package-lock.json b/package-lock.json index de6fac919..1fce9c5fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,6 +32,7 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^9.1.0", "@wordpress/eslint-plugin": "^17.6.0", + "@wordpress/html-entities": "^3.49.0", "@wordpress/scripts": "^26.19.0", "cypress": "^13.6.2", "cypress-axe": "^1.5.0", @@ -5855,6 +5856,18 @@ "@babel/runtime": "^7.13.10" } }, + "node_modules/@wordpress/html-entities": { + "version": "3.49.0", + "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.49.0.tgz", + "integrity": "sha512-t9/eKhm/JBoRGze9hQOmQPO8TNOjLgIHFGzvca0MSurrR2C0Gy4eVxE/FFHtLBctN8fcgAghhQP06y1lZZ7FfQ==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/i18n": { "version": "4.49.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.49.0.tgz", @@ -27549,6 +27562,15 @@ "@babel/runtime": "^7.13.10" } }, + "@wordpress/html-entities": { + "version": "3.49.0", + "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.49.0.tgz", + "integrity": "sha512-t9/eKhm/JBoRGze9hQOmQPO8TNOjLgIHFGzvca0MSurrR2C0Gy4eVxE/FFHtLBctN8fcgAghhQP06y1lZZ7FfQ==", + "dev": true, + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/i18n": { "version": "4.49.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.49.0.tgz", diff --git a/package.json b/package.json index 8d450aa24..1fff4069b 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^9.1.0", "@wordpress/eslint-plugin": "^17.6.0", + "@wordpress/html-entities": "^3.49.0", "@wordpress/scripts": "^26.19.0", "cypress": "^13.6.2", "cypress-axe": "^1.5.0", diff --git a/src/app/components/site-info/index.js b/src/app/components/site-info/index.js index 99a7639e5..c7bcd8099 100644 --- a/src/app/components/site-info/index.js +++ b/src/app/components/site-info/index.js @@ -1,4 +1,5 @@ import { LockClosedIcon, LockOpenIcon } from '@heroicons/react/24/outline'; +import { decodeEntities } from '@wordpress/html-entities'; import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime'; import { Button } from '@newfold/ui-component-library'; import { BluehostIcon, WordPressIcon } from '../icons'; @@ -29,7 +30,7 @@ export const SiteInfoBar = () => {

- { title } + { decodeEntities( title ) }