markdown text in comments (auto linking, etc). we can use {{{ }}} notation here because markdown strips out xss, etc.
This commit is contained in:
parent
bf5538d035
commit
c94cc1cef2
2 changed files with 5 additions and 8 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
{{text}}
|
{{{text}}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="comment_info">
|
<div class="comment_info">
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,11 @@ app.views.Comment = app.views.Content.extend({
|
||||||
"click .comment_delete": "destroyModel"
|
"click .comment_delete": "destroyModel"
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function() {
|
|
||||||
$(this.el).attr("id", this.model.get("guid"));
|
|
||||||
|
|
||||||
return this;
|
|
||||||
},
|
|
||||||
|
|
||||||
presenter : function() {
|
presenter : function() {
|
||||||
return _.extend(this.defaultPresenter(), {ownComment: this.ownComment()})
|
return _.extend(this.defaultPresenter(), {
|
||||||
|
ownComment: this.ownComment(),
|
||||||
|
text : app.helpers.textFormatter(this.model)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
ownComment: function() {
|
ownComment: function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue