blogapi_blogger_title(&$contents)
drupal/modules/blogapi/blogapi.module, line 705
For the blogger API, extract the node title from the contents field.
function blogapi_blogger_title(&$contents) {
if (preg_match('/<title>(.*?)<\/title>/i', $contents, $title)) {
$title = strip_tags($title[0]);
$contents = preg_replace('/<title>.*?<\/title>/i', '', $contents);
}
else {
list($title, $contents) = explode("\n", $contents, 2);
}
return $title;
}