Skip to content

Commit

Permalink
Merge pull request #398 from Yoast/bugfix/html-entity-decode-title-de…
Browse files Browse the repository at this point in the history
…scription-preview

[BUGFIX] Added html_entity_decode to title and description within snippet preview
  • Loading branch information
haassie authored Dec 22, 2020
2 parents bdfdf5d + d059da7 commit a6ee5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/PreviewService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ protected function getDataFromContent($content, $uriToCheck): array
'url' => $url,
'baseUrl' => $baseUrl,
'slug' => '/',
'title' => $title,
'description' => $metaDescription,
'title' => html_entity_decode($title),
'description' => html_entity_decode($metaDescription),
'locale' => $locale,
'body' => $body,
'faviconSrc' => $faviconSrc,
Expand Down

0 comments on commit a6ee5a2

Please sign in to comment.