Skip to content

Commit

Permalink
Decode HTML entities in link button text to prevent things like amper…
Browse files Browse the repository at this point in the history
…sands from being displayed as entities

The update made in class-link-button.php fixes an issue with HTML entities being displayed in the link button text. By using the 'html_entity_decode' function, these HTML entities are now properly decoded, improving the visual output and user experience.
  • Loading branch information
attackant committed Dec 22, 2023
1 parent d3fa1af commit 45dab2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/apple-exporter/components/class-link-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function build( $html ) {
'json',
[
'#url#' => $url,
'#text#' => $link_button_match[2],
'#text#' => html_entity_decode($link_button_match[2], ENT_QUOTES, 'UTF-8'),
]
);
} else {
Expand Down

0 comments on commit 45dab2b

Please sign in to comment.