meta data for this page
  •  

How to strip HTML from the Blesta titles?

So if your cool new template or theme has like <b>BOLDER</b> or a different colour they look horrible in the page title for your website but look cool on your website.

To get around this we need to find the title:

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

Replace it with:

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

This means your page titles look neat and great for SEO and Google, etc but your theme or template looks sexy as hell.