In my D7 Omega subtheme, I am finding that I am getting html entities in page titles.

preprocess-html.inc ends with this line ...

$vars['head_title'] = strip_tags($vars['head_title']); // Remove any potential html tags

But it seems to be too late.

Doing the strip tags before the calls to drupal_set_title does work however.

Comments

himerus’s picture

Fixed in this commit. http://drupal.org/cvs?commit=457518

Moved all strip_tags calls to the internal sections before drupal_set_title is called.

Will be added to alpha 4 release.

himerus’s picture

Assigned: Unassigned » himerus
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Daniel Norton’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha7
Status: Closed (fixed) » Active

If this was actually fixed in alpha4, it is regressed in alpha7.

Daniel Norton’s picture

Title: Head tile and strip tags » Head title and strip tags

correct issue title

himerus’s picture

Title: Head title and strip tags » Head tile and strip tags
Status: Active » Fixed

Okay, not sure what was going on here, but I changed up the title displays in preprocess_html using the same methods in template_preprocess_page().
This should solve the issue moving forward, and has been committed to the dev version; will be tagged in alpha8

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.