Permalink
Browse files

mark prev/next page labels as `html_safe!`

closes #19
  • Loading branch information...
1 parent 92ef3a6 commit fc997e103bbf787e621b181beb70f0fb6c2929b4 @mislav mislav committed May 26, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/will_paginate/view_helpers.rb
@@ -298,6 +298,7 @@ def visible_page_numbers
def page_link_or_span(page, span_class, text = nil)
text ||= page.to_s
+ text.html_safe! if text.respond_to? :html_safe!
if page and page != current_page
classnames = span_class && span_class.index(' ') && span_class.split(' ', 2).last

0 comments on commit fc997e1

Please sign in to comment.