]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak tag detection (use all rel='tag' links)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 06:53:02 +0000 (07:53 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 06:53:02 +0000 (07:53 +0100)
functions.php

index 6d3a2cacc0529c826db3f922affbc02d27853652..f528edc9b93323bf2378a8f9707b58a0002899b8 100644 (file)
                                }
 
                                /* taaaags */
-                               // <a href="http://technorati.com/tag/Xorg" rel="tag">Xorg</a>, //
+                               // <a href="..." rel="tag">Xorg</a>, //
 
                                $entry_tags = null;
 
-                               preg_match_all("/<a.*?href=.http:\/\/.*?technorati.com\/tag\/([^\"\'>]+)/i", 
+                               preg_match_all("/<a.*?rel=['\"]tag['\"].*?>([^<]+)<\/a>/i", 
                                        $entry_content_unescaped, $entry_tags);
 
 //                             print "<br>$entry_title : $entry_content_unescaped<br>";