Fix for Fix for Fix for Fix for Allow HTML in node titles for Drupal 6.x

  1. <?php
  2. /*
  3.  * Created 20 Apr 2009 12:07:47 by Greg Harvey
  4.  * http://www.drupaler.co.uk
  5.  */
  6. function html_titles_preprocess_page(&$vars) {
  7.   if (arg(0) == 'node' && is_numeric(arg(1))) {
  8.     $node = node_load(arg(1));
  9.     $vars['html_title'] = check_markup($node->title);
  10.     $clean_title = strip_tags($node->title);
  11.     $vars['head_title'] = check_plain($clean_title);
  12.   }
  13. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.