Open Startouf opened 8 years ago
The <%= paginate %> write escaped HTML to the view
<%= paginate %>
<% p = paginate(collection, theme: 'my_theme') p.class # => ActiveSupport::SafeBuffer p # => " <nav class=\"pagination\">\n \n <span class="prev">\n p.html_safe? # => false %>
Rails 5 Cells 4.1 cells-rails 0.0.4 kaminari-cells 0.0.4
Will use the CGI.unescapeHTML(String.new(xxx)) hack in the meantime
CGI.unescapeHTML(String.new(xxx))
+1
+1 We need to fix it using follow
module Kaminari module Helpers class Tag alias_method :to_s_old, :to_s def to_s(l={}) to_s_old(l).html_safe end end end end
The
<%= paginate %>
write escaped HTML to the viewRails 5 Cells 4.1 cells-rails 0.0.4 kaminari-cells 0.0.4
Will use the
CGI.unescapeHTML(String.new(xxx))
hack in the meantime