Bug #88174

PageTitle should allow quotation marks

Added by Michael Rainer about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2019-04-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hi all,

I want to set the page title to a string which contains quotation marks.
...
<head>
<title>Hotel xy "Single Room"</title>
</head>
...

According to W3C Validator, it's allowed to have quotation marks in the title tag.

I set the title via the PageRenderer class of the core extension ( \TYPO3\CMS\Core\Page\PageRenderer->setTitle ).
But the quotation marks will be escaped: The PageRendererClass always escapes the title via htmlspecialchars().

For example in the getPreparedMarkerArray method:

'TITLE' => $this->title ? str_replace('|', htmlspecialchars($this->title), $this->titleTag) : '',

What are your thoughts?

Kind regards,
Michael

Also available in: Atom PDF