How to use special characters when setting pageTitle?
-
28-09-2019 - |
Question
I tried both ’
and ’
but they show up as ’
in the browser title bar.
Solution
I am using this one (both in the controller or model) and I've seen the html characters correctly in the title browser.
$this->set('title_for_layout', 'Testing: » « ’');
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow