Merge pull request #4996 from ryantm/patch-2

safely call html_safe on category description
This commit is contained in:
Sam 2017-07-25 15:34:08 -04:00 committed by GitHub
commit ec2506c32b
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<h2><a href='<%= c.url %>' itemprop='item'>
<span itemprop='name'><%= c.name %></span>
</a></h2>
<span itemprop='description'><%= c.description.html_safe %></span>
<span itemprop='description'><%= c.description&.html_safe %></span>
</div>
<% end %>
</div>