Skip to content

Commit f57b8a5

Browse files
committed
decode html entities in link button url
1 parent f81548e commit f57b8a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/apple-exporter/components/class-link-button.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ protected function build( $html ) {
116116
} elseif ( 0 === strpos( $url, '#' ) ) {
117117
$url = trailingslashit( get_the_permalink() ) . $url;
118118
}
119+
$url = html_entity_decode( $url, ENT_QUOTES, 'UTF-8' );
119120

120121
// Register JSON for this component.
121122
$this->register_json(

0 commit comments

Comments
 (0)