Strip tags from story title

This commit is contained in:
Tobi Schäfer 2014-12-17 23:59:32 +01:00
parent d334ac3f05
commit eed20392c0

View file

@ -229,7 +229,7 @@ Story.prototype.update = function(data) {
// Get difference to current content before applying changes
var delta = this.getDelta(data);
this.title = data.title ? data.title.trim() : String.EMPTY;
this.title = data.title ? stripTags(data.title.trim()) : String.EMPTY;
this.text = data.text ? data.text.trim() : String.EMPTY;
this.status = data.status || Story.PUBLIC;
this.mode = data.mode || Story.FEATURED;