Skip to content

Commit

Permalink
mark prev/next page labels as html_safe!
Browse files Browse the repository at this point in the history
closes mislav#19
  • Loading branch information
mislav committed May 26, 2010
1 parent 92ef3a6 commit fc997e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/will_paginate/view_helpers.rb
Expand Up @@ -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
Expand Down

0 comments on commit fc997e1

Please sign in to comment.