Permalink
Browse files

regexing out html in product description before it gets truncated

[Fixes #1620]
  • Loading branch information...
1 parent 4851317 commit 8f5374223ae3f3ad36252e2e41e52b3a7186ef04 @GeekOnCoffee GeekOnCoffee committed with radar Jun 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/views/spree/orders/_line_item.html.erb
@@ -14,7 +14,7 @@
<%= variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) %><br />
</span>
<% end %>
- <%= truncate(variant.product.description, :length => 100, :omission => "...") %>
+ <%= truncate(variant.product.description.gsub(/<(.*?)>/,""), :length => 100, :omission => "...") %>
</td>
<td data-hook="cart_item_price">
<%= number_to_currency line_item.price %>

0 comments on commit 8f53742

Please sign in to comment.