return($cleaned);
}
+function fromgplus_cleantext($text) {
+ $text = strip_tags($text);
+ $text = html_entity_decode($text);
+ $text = trim($text);
+ $text = str_replace(array("\n", "\r", " "), array("", "", ""), $text);
+ return($text);
+}
+
function fromgplus_handleattachments($item, $displaytext) {
$post = "";
$quote = "";
$post .= "\n\n[bookmark=".$attachment->url."]".fromgplus_html2bbcode($attachment->displayName)."[/bookmark]\n";
$images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image);
- if ($images["preview"] != "")
- $post .= "\n[url=".$images["full"]."][img]".$images["preview"]."[/img][/url]\n";
- elseif ($images["full"] != "")
+ //if ($images["preview"] != "")
+ // $post .= "\n[url=".$images["full"]."][img]".$images["preview"]."[/img][/url]\n";
+ //elseif ($images["full"] != "")
+ // $post .= "\n[img]".$images["full"]."[/img]\n";
+ if ($images["full"] != "")
$post .= "\n[img]".$images["full"]."[/img]\n";
//$post .= "[quote]".trim(fromgplus_html2bbcode($attachment->content))."[/quote]";
elseif ($images["full"] != "")
$post .= "\n[img]".$images["full"]."[/img]\n";
- if (($attachment->displayName != "") AND ($attachment->displayName != $displaytext))
+ if (($attachment->displayName != "") AND (fromgplus_cleantext($attachment->displayName) != fromgplus_cleantext($displaytext)))
$post .= fromgplus_html2bbcode($attachment->displayName)."\n";
break;