mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-08 21:07:08 +10:00
#45 sanitize html tags and html safe contents
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user