You are here

function html_title_node_view in HTML Title 7

Same name and namespace in other branches
  1. 8 html_title.module \html_title_node_view()

Implementation of hook_node_view()

File

./html_title.module, line 95
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_node_view($node, $view_mode) {
  switch ($view_mode) {
    case 'rss':
      $node->title = strip_tags($node->title);
      break;
  }
}