src/js/widgets/tweetsWidget.js
branchtweet-widget
changeset 285 b7aa28af2c10
parent 282 1001234e5e6e
child 293 314e6a13f841
--- a/src/js/widgets/tweetsWidget.js	Mon Nov 21 10:17:54 2011 +0100
+++ b/src/js/widgets/tweetsWidget.js	Mon Nov 21 10:51:22 2011 +0100
@@ -13,7 +13,7 @@
 
 IriSP.TweetsWidget.prototype.drawTweet = function(annotation) {
     
-    var title = annotation.content.title;
+    var title = IriSP.formatTweet(annotation.content.title);
     var img = annotation.content.img.src;
     if (typeof(img) === "undefined" || img === "" || img === "None") {
       img = IriSP.widgetsDefaults.TweetsWidget.default_profile_picture;
@@ -22,7 +22,7 @@
     var imageMarkup = Mustache.to_html("<img src='{{src}}' alt='avatar'></img>", 
                                        {src : img});
 
-    this.selector.find(".Ldt-tweetContents").text(title);
+    this.selector.find(".Ldt-tweetContents").html(title);
     this.selector.find(".Ldt-tweetAvatar").html(imageMarkup);
     this.selector.show("blind", 250); 
 };