You are here

function _parser_simplepie_title in FeedAPI 5

Same name and namespace in other branches
  1. 6 parser_simplepie/parser_simplepie.module \_parser_simplepie_title()

Prepare raw data to be a title

1 call to _parser_simplepie_title()
_parser_simplepie_feedapi_parse in parser_simplepie/parser_simplepie.module
Parsing the feed

File

parser_simplepie/parser_simplepie.module, line 237
Parse the incoming URL with SimplePie then provide a data structure of the feed

Code

function _parser_simplepie_title($title) {
  if (version_compare(PHP_VERSION, '5.0.0', '<')) {
    return html_entity_decode(strip_tags($title), ENT_QUOTES);
  }
  else {
    return html_entity_decode(strip_tags($title), ENT_QUOTES, 'UTF-8');
  }
}