]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_fsckportal/init.php
strip_harmful_tags: remove data- attributes
[tt-rss.git] / plugins / af_fsckportal / init.php
index 4a5490274fe112b1beef00b3e4060fd3a7707fe5..0fa58e9ed99c72576e0d9c3e424da967d15cd7e3 100644 (file)
@@ -16,9 +16,6 @@ class Af_Fsckportal extends Plugin {
        }
 
        function hook_article_filter($article) {
-               $owner_uid = $article["owner_uid"];
-
-               if (strpos($article["plugin_data"], "fsckportal,$owner_uid:") === FALSE) {
 
                        $doc = new DOMDocument();
 
@@ -40,12 +37,8 @@ class Af_Fsckportal extends Plugin {
                                        }
                                }
 
-                               $article["content"] = $doc->saveXML();
-                               $article["plugin_data"] = "fsckportal,$owner_uid:" . $article["plugin_data"];
+                               $article["content"] = $doc->saveHTML();
 
-                       }
-               } else if (isset($article["stored"]["content"])) {
-                       $article["content"] = $article["stored"]["content"];
                }
 
                return $article;
@@ -56,4 +49,3 @@ class Af_Fsckportal extends Plugin {
        }
 
 }
-?>