You are here

function html_title_preprocess_node in HTML Title 6

Same name and namespace in other branches
  1. 7 html_title.module \html_title_preprocess_node()

Implementation of hook_preprocess_node()

File

./html_title.module, line 62
This module enables limited HTML to be used in node titles. It strips title markup from RSS feeds to eliminate unsightly markup in feed readers.

Code

function html_title_preprocess_node(&$node) {
  if (isset($node['html_title_raw'])) {
    $elements = variable_get('html_title_allowed_elements', array(
      'em',
      'sub',
      'sup',
    ));
    $node['title'] = filter_xss($node['html_title_raw'], $elements);
  }
}