diff --git a/app/assets/javascripts/discourse/templates/post.js.handlebars b/app/assets/javascripts/discourse/templates/post.js.handlebars index 7d3b1722d3d..d435f2ff637 100644 --- a/app/assets/javascripts/discourse/templates/post.js.handlebars +++ b/app/assets/javascripts/discourse/templates/post.js.handlebars @@ -48,7 +48,7 @@
{{view Discourse.PrependPostView postBinding="this"}} -
{{{cooked}}}
+ {{view Discourse.RawDivView class="cooked" contentBinding="cooked"}} {{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}} diff --git a/app/assets/javascripts/discourse/views/raw_div_view.js b/app/assets/javascripts/discourse/views/raw_div_view.js new file mode 100644 index 00000000000..a81480d2298 --- /dev/null +++ b/app/assets/javascripts/discourse/views/raw_div_view.js @@ -0,0 +1,13 @@ +// used to render a div with unescaped contents + +Discourse.RawDivView = Ember.View.extend({ + + render: function(buffer) { + buffer.push(this.get('content')); + }, + + contentChanged: function() { + this.rerender(); + }.observes('content') + +});