#45 sanitize html tags and html safe contents

This commit is contained in:
2015-12-16 23:06:43 +08:00
parent 3475b98a16
commit 557cbd24ab
+1 -1
View File
@@ -1,6 +1,6 @@
<%- if @post.content.present? %>
<div class="post-wrapper">
<%= @post.content.html_safe %>
<%= sanitize @post.content.html_safe %>
</div>
<div class="post-actions" data-read-url="<%= api_v1_post_view_path(@post) %>"></div>
<%- else %>