function _feedapi_process_text in FeedAPI 6
Filter texts from parsers
Parameters
$text: The text to be processed
$allowed: Allowed tags in that text
Return value
The safe string
1 call to _feedapi_process_text()
- _feedapi_call_parsers in ./
feedapi.module - Execute the enabled parsers and create an unified output
File
- ./
feedapi.module, line 1096 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function _feedapi_process_text($text, $allowed) {
if (is_array($allowed)) {
$text = filter_xss($text, $allowed);
}
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
return trim(html_entity_decode($text, ENT_QUOTES));
}
else {
return trim(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));
}
}