Skip to content

Commit

Permalink
Apply strip_tags() to the HTML title tag
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 14, 2020
1 parent 2aba23f commit 31a2454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/pages/PageRegular.php
Expand Up @@ -210,7 +210,7 @@ protected function prepare($objPage)
}

// Assign the title and description
$this->Template->title = $this->replaceInsertTags($objLayout->titleTag);
$this->Template->title = strip_tags($this->replaceInsertTags($objLayout->titleTag));
$this->Template->description = str_replace(array("\n", "\r", '"'), array(' ', '', ''), $objPage->description);

// Body onload and body classes
Expand Down

0 comments on commit 31a2454

Please sign in to comment.