Skip to content

Commit

Permalink
fix: revert plugin changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jan 16, 2025
1 parent dbbe65a commit e9bf544
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( htmlentities( htmlspecialchars( $html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8' ) ) );
$converted_html = htmlspecialchars_decode( htmlentities( mb_convert_encoding( $html, 'HTML-ENTITIES', 'UTF-8' ) ) );
$document = new DomDocument( '1.0', 'UTF-8' );

libxml_use_internal_errors( true );
Expand Down

0 comments on commit e9bf544

Please sign in to comment.