diff --git a/code/Story/Story.js b/code/Story/Story.js index 1f107d19..6067a1cc 100644 --- a/code/Story/Story.js +++ b/code/Story/Story.js @@ -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;