Skip to content

Commit

Permalink
fix: php tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jan 16, 2025
1 parent ac296cc commit dbbe65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp/headless-wp/includes/classes/Integrations/Gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit dbbe65a

Please sign in to comment.