Search code examples
cakephpspecial-charactershtml-entitiespage-title

How to use special characters when setting pageTitle?


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: » « ’');