Skip to content

Commit

Permalink
Correctly encode page title (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Dec 28, 2020
1 parent 2d10f0e commit aef8934
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ protected function generateTemplateArray(NavigationItem $item, UrlParameterBag $
'link' => $item->getLabel(),
'subitems' => '',
'href' => specialchars($item->getHref($urlParameterBag)),
'title' => strip_tags($item->getTitle()),
'pageTitle' => strip_tags($item->getPageTitle()),
'title' => specialchars(strip_tags($item->getTitle())),
'pageTitle' => specialchars(strip_tags($item->getPageTitle())),
'accesskey' => '',
'tabindex' => '',
'nofollow' => false,
Expand Down

0 comments on commit aef8934

Please sign in to comment.