function html_title_preprocess_node in HTML Title 7
Same name and namespace in other branches
- 6 html_title.module \html_title_preprocess_node()
Implementation of template_preprocess_node()
File
- ./
html_title.module, line 73 - 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(&$vars) {
switch ($vars['view_mode']) {
case 'search_index':
case 'rss':
return;
default:
$vars['title'] = html_title_filter_xss($vars['elements']['#node']->title);
}
}