diff --git a/rails/app/javascript/components/Story.jsx b/rails/app/javascript/components/Story.jsx index b5451238f..6cad2f1bc 100644 --- a/rails/app/javascript/components/Story.jsx +++ b/rails/app/javascript/components/Story.jsx @@ -50,7 +50,7 @@ const Story = props => { {story.title} {story.permission_level === "restricted" && " 🔒"} -
{story.desc}
+ { story.media && story.media.map(file => ( diff --git a/rails/app/views/dashboard/stories/_stories.html.erb b/rails/app/views/dashboard/stories/_stories.html.erb index 3cb2f5fc9..e5d2a5cdb 100644 --- a/rails/app/views/dashboard/stories/_stories.html.erb +++ b/rails/app/views/dashboard/stories/_stories.html.erb @@ -14,7 +14,7 @@ <%= Story.human_attribute_name("permission_level.#{story.permission_level}") %> <% end %> -<%= story.desc %>
+<%= sanitize story.desc, tags: %w(strong em u) %>
<%= @story.desc %>
+<%= sanitize @story.desc, tags: %w(strong em u) %>
<% @story.media.each do |media| %>