}
},
sendEmail: function () {
- window.location = 'mailto:?subject=' + this.datas.title + '&body=' + this.datas.title + ' : ' + this.getLocationToShare();
+ window.location = 'mailto:?subject=' + encodeURIComponent(this.datas.title) + '&body=' + encodeURIComponent(this.datas.title + ' : ' + this.getLocationToShare());
this.stats.track(5);
},
sendTwitter: function () {
}, function (args) {
});
} else {
- window.location = 'mailto:?subject=' + subject + '&body=' + body;
+ window.location = 'mailto:?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(body);
}
this.stats.track(5);
},