Skip to content

getTitle breaks website #38027

Answered by nzyeehaa
nzyeehaa asked this question in General
Discussion options

You must be logged in to vote

change
$title = $doc->getTitle();
to
$title = htmlspecialchars($doc->getTitle(), ENT_QUOTES, 'UTF-8');

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nzyeehaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant