From ab2492f292a9790b692ec9a2f69cb8ddef119e65 Mon Sep 17 00:00:00 2001 From: ahiles3005 Date: Sun, 21 Feb 2016 14:17:45 +0400 Subject: [PATCH 1/2] update for issue #192 --- bridges/TwitterBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index be007e8..cca8033 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -65,7 +65,7 @@ class TwitterBridge extends BridgeAbstract{ $link->removeAttribute('title'); } $item->content = str_replace('href="/', 'href="https://twitter.com/', strip_tags($tweet->find('p.js-tweet-text', 0)->innertext, '')); // extract tweet text - $item->title = $item->fullname . ' (@'. $item->username . ') | ' . $item->content; + $item->title = $item->fullname . ' (@' . $item->username . ') | ' . strip_targ($item->content); $this->items[] = $item; } } From 4c241a1319534649d22438e00cf1081cc38b4dc1 Mon Sep 17 00:00:00 2001 From: ahiles3005 Date: Sun, 21 Feb 2016 14:23:58 +0400 Subject: [PATCH 2/2] update for issue #192 --- bridges/TwitterBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index cca8033..90dea5b 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -65,7 +65,7 @@ class TwitterBridge extends BridgeAbstract{ $link->removeAttribute('title'); } $item->content = str_replace('href="/', 'href="https://twitter.com/', strip_tags($tweet->find('p.js-tweet-text', 0)->innertext, '')); // extract tweet text - $item->title = $item->fullname . ' (@' . $item->username . ') | ' . strip_targ($item->content); + $item->title = $item->fullname . ' (@' . $item->username . ') | ' . strip_tags($item->content); $this->items[] = $item; } }