markdown text in comments (auto linking, etc). we can use {{{ }}} notation here because markdown strips out xss, etc.

This commit is contained in:
danielgrippi 2012-01-23 00:57:05 -08:00
parent bf5538d035
commit c94cc1cef2
2 changed files with 5 additions and 8 deletions

View file

@ -19,7 +19,7 @@
</span>
<div class="collapsible">
{{text}}
{{{text}}}
</div>
<div class="comment_info">

View file

@ -10,14 +10,11 @@ app.views.Comment = app.views.Content.extend({
"click .comment_delete": "destroyModel"
},
initialize : function() {
$(this.el).attr("id", this.model.get("guid"));
return this;
},
presenter : function() {
return _.extend(this.defaultPresenter(), {ownComment: this.ownComment()})
return _.extend(this.defaultPresenter(), {
ownComment: this.ownComment(),
text : app.helpers.textFormatter(this.model)
})
},
ownComment: function() {