Knowledge Base

My titles have html in them!

If your theme has a span or section to highlight some text you'll need to put this as the page title. However this also means on the web browser they show up in html. To fix this just replace the tile code with the following:

<?php echo $this->Html->safe(($this->Html->ifSet(strip_tags($page_title)) ? strip_tags($page_title) . ' | ' : '') . $this->Html->ifSet($system_company->name));?>

The simple fix is to the strip the html tags.

Please rate this article to help us improve our Knowledge Base.

1 0