purify summary
This commit is contained in:
parent
5a9ea29614
commit
0dbb024c99
@ -436,6 +436,13 @@ function get_atom_elements($feed, $item) {
|
|||||||
|
|
||||||
$summary = unxmlify($item->get_description(true));
|
$summary = unxmlify($item->get_description(true));
|
||||||
|
|
||||||
|
if(($summary) && ((strpos($summary,'<') !== false) || (strpos($summary,'>') !== false))) {
|
||||||
|
$summary = purify_html($summary);
|
||||||
|
$summary = html2bbcode($summary);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// removing the content of the title if its identically to the body
|
// removing the content of the title if its identically to the body
|
||||||
// This helps with auto generated titles e.g. from tumblr
|
// This helps with auto generated titles e.g. from tumblr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user