Skip to content

Commit

Permalink
Replace deprecated utf8_decode with mb_convert_encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
derpaschi committed Sep 24, 2024
1 parent 4e1e085 commit 4604c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function add_anchor_attribute( string $html ): string {
}

// Save the HTML changes.
$content = utf8_decode( $dom->saveHTML( $dom->documentElement ) ); //phpcs:ignore
$content = mb_convert_encoding( $dom->saveHTML( $dom->documentElement ), 'ISO-8859-1', 'UTF-8'); //phpcs:ignore

return $content;
}
Expand Down

0 comments on commit 4604c37

Please sign in to comment.