purify summary

This commit is contained in:
zotlabs 2018-02-11 14:12:24 -08:00
parent 5a9ea29614
commit 0dbb024c99

View File

@ -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