From: Andrew Dolgov Date: Wed, 23 Nov 2005 16:51:09 +0000 (+0100) Subject: fix broken tag detection due to $entry_content being escaped X-Git-Tag: schema_feature_freeze_for_1.1~118 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ee2c30500355415e05fd90c3799ffcbafc5c1c86;p=tt-rss.git fix broken tag detection due to $entry_content being escaped --- diff --git a/backend.php b/backend.php index ff3e2605..af49cf2a 100644 --- a/backend.php +++ b/backend.php @@ -580,7 +580,6 @@ $limit = $_GET["limit"]; if (!$feed) { - print "Error: no feed to display."; return; } diff --git a/functions.php b/functions.php index 7ca9bb81..19d4176e 100644 --- a/functions.php +++ b/functions.php @@ -266,6 +266,8 @@ if (!$entry_content) $entry_content = $item["content"]; if (!$entry_content) $entry_content = $item["description"]; + $entry_content_unescaped = $entry_content; + // if (!$entry_content) continue; // WTF @@ -403,8 +405,11 @@ $entry_tags = null; - preg_match_all("/([^>]+)<\/a>/i", $entry_content, - $entry_tags); + preg_match_all("/([^>]+)<\/a>/i", + $entry_content_unescaped, $entry_tags); + +// print "
$entry_title : $entry_content_unescaped
"; +// print_r($entry_tags); $entry_tags = $entry_tags[1];