switched to html()

This commit is contained in:
toyg 2014-01-16 23:35:31 +00:00
parent d025e30e4d
commit 0cf2b79a0c

View File

@ -116,8 +116,7 @@ function dmDataToSnippetItem(dmData, remoteUser) {
dmItem.find("a.dm-chat-link").attr("href", $.MAL.dmchatUrl(remoteUser)); dmItem.find("a.dm-chat-link").attr("href", $.MAL.dmchatUrl(remoteUser));
getAvatar( remoteUser, dmItem.find(".post-photo").find("img") ); getAvatar( remoteUser, dmItem.find(".post-photo").find("img") );
getFullname( remoteUser, dmItem.find("a.post-info-name") ); getFullname( remoteUser, dmItem.find("a.post-info-name") );
var mentions = []; dmItem.find(".post-text").html(escapeHtmlEntities(dmData.text));
htmlFormatMsg(dmData.text, dmItem.find(".post-text"), mentions);
dmItem.find(".post-info-time").text(timeGmtToText(dmData.time)); dmItem.find(".post-info-time").text(timeGmtToText(dmData.time));
dmItem.find(".post-info-time").attr("title",timeSincePost(dmData.time)); dmItem.find(".post-info-time").attr("title",timeSincePost(dmData.time));