Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

regexing out html in product description before it gets truncated

[Fixes #1620]
  • Loading branch information...
commit 8f5374223ae3f3ad36252e2e41e52b3a7186ef04 1 parent 4851317
Andrew Hooker GeekOnCoffee authored radar committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/app/views/spree/orders/_line_item.html.erb
2  core/app/views/spree/orders/_line_item.html.erb
View
@@ -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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.