mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:45:57 +00:00
do not preg_match() tags from article content
This commit is contained in:
@@ -506,18 +506,7 @@
|
|||||||
_debug("update_rss_feed: looking for tags [2]...");
|
_debug("update_rss_feed: looking for tags [2]...");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* taaaags */
|
$entry_tags = array_unique($additional_tags);
|
||||||
// <a href="..." rel="tag">Xorg</a>, //
|
|
||||||
|
|
||||||
$entry_tags = null;
|
|
||||||
|
|
||||||
preg_match_all("/<a.*?rel=['\"]tag['\"].*?\>([^<]+)<\/a>/i",
|
|
||||||
$entry_content, $entry_tags);
|
|
||||||
|
|
||||||
$entry_tags = $entry_tags[1];
|
|
||||||
|
|
||||||
$entry_tags = array_merge($entry_tags, $additional_tags);
|
|
||||||
$entry_tags = array_unique($entry_tags);
|
|
||||||
|
|
||||||
for ($i = 0; $i < count($entry_tags); $i++)
|
for ($i = 0; $i < count($entry_tags); $i++)
|
||||||
$entry_tags[$i] = mb_strtolower($entry_tags[$i], 'utf-8');
|
$entry_tags[$i] = mb_strtolower($entry_tags[$i], 'utf-8');
|
||||||
|
|||||||
Reference in New Issue
Block a user