if (module_exists('token')) {
$output = preg_replace('/[\t\n\r\0\x0B]/', '', strip_tags(token_replace($output, 'node', $node)));
}
+ // decode the HTML in the title -- we don't want Drupal to double-encode it
+ $trans = array_flip(get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES));
+ $trans['''] = "'"; // PHP bug... encoding and decoding strings are different... this fixes
+ $output = strtr($output, $trans);
return $output;
}