From: Andrew Dolgov Date: Fri, 2 Dec 2005 08:47:37 +0000 (+0100) Subject: improve tag and content detection X-Git-Tag: schema_feature_freeze_for_1.1~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=372ced8b951ddbb4e6baadb4352ce72a7d173d55;p=tt-rss.git improve tag and content detection --- diff --git a/functions.php b/functions.php index c58afe9e..d36ee849 100644 --- a/functions.php +++ b/functions.php @@ -293,13 +293,11 @@ $entry_content = $item["content:escaped"]; - if (!$entry_content) $entry_content = $item["summary"]; if (!$entry_content) $entry_content = $item["content:encoded"]; if (!$entry_content) $entry_content = $item["content"]; + if (!$entry_content) $entry_content = $item["summary"]; if (!$entry_content) $entry_content = $item["description"]; - $entry_content_unescaped = $entry_content; - // if (!$entry_content) continue; // WTF @@ -309,8 +307,10 @@ } // print_r($item); -// print_r($entry_content); +// print_r(htmlspecialchars($entry_content)); +// print "
"; + $entry_content_unescaped = $entry_content; $content_hash = "SHA1:" . sha1(strip_tags($entry_content)); $entry_comments = $item["comments"]; @@ -452,11 +452,12 @@ $entry_tags = null; - preg_match_all("/]+)/i", + preg_match_all("/]+)/i", $entry_content_unescaped, $entry_tags); // print "
$entry_title : $entry_content_unescaped
"; // print_r($entry_tags); +// print "
"; $entry_tags = $entry_tags[1];