• I decided to add icons in the notification (fortawesome).

    		function(_followers, next) {
    		    followers = _followers;
    		    if (!followers.length) {
    		        return callback();
    		    }
    		    title = postData.topic.title;
    		    if (title) {
    		        title = S(title).decodeHTMLEntities().s;
    		    }
    
    		    notifications.create({
    		        bodyShort: '[[<i class="fa fa-share"></i>, notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]',
    				bodyLong: postData.content,
    				pid: postData.pid,
    				nid: 'tid:' + postData.topic.tid + ':pid:' + postData.pid + ':uid:' + exceptUid,
    				tid: postData.topic.tid,
    				from: exceptUid
    			}, function(err, notification) {
    				if (err) {
    					return next(err);
    				}
    				if (notification) {
    					notifications.push(notification, followers);
    				}
    				next();
    			});
    		},
    

    <i class="fa fa-share"></i> - this icon.
    The problem is that it appears as -

    &lt;i class="fa fa-share"&gt;&lt;/i&gt;
    < > Are displayed in the form of html code.

Suggested Topics

| |