From dbbe65aee5cb05e0bb784ecd4fab9d62e99a3721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcholas=20Andr=C3=A9?= Date: Thu, 16 Jan 2025 16:59:14 -0300 Subject: [PATCH] fix: php tests --- wp/headless-wp/includes/classes/Integrations/Gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp/headless-wp/includes/classes/Integrations/Gutenberg.php b/wp/headless-wp/includes/classes/Integrations/Gutenberg.php index 22b072da5..07820994d 100644 --- a/wp/headless-wp/includes/classes/Integrations/Gutenberg.php +++ b/wp/headless-wp/includes/classes/Integrations/Gutenberg.php @@ -189,7 +189,7 @@ public function process_dom_document_bypassed_block( string $html ): string { * @return DOMDocument */ protected function read_converted_dom_document( string $html ) { - $converted_html = htmlspecialchars_decode( htmlspecialchars( $html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8' ) ); + $converted_html = htmlspecialchars_decode( htmlentities( htmlspecialchars( $html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8' ) ) ); $document = new DomDocument( '1.0', 'UTF-8' ); libxml_use_internal_errors( true );