Using Rails 2.3.5 and the rails_xss plugin, the pagination links are not marked as HTML safe, so are escaped and do not display correctly. It seems like they should be marked using html_safe! by default if it is available?
I've tried to fix this, but will_paginate gem gets loaded before the rails_xss plugin — therefore I can't mark output as html_safe because I can't know if the application is using xss protection at all.
You can drop this in your app as a solution:
safe_helper :will_paginate, :paginated_section, :page_entries_info
will_paginate 2.3.12 and 3.0.pre should now be html safe. however, the problem described in my last comment still persists. closing
I just added that block to config/initializers/will_paginate.rb and it worked great.
With rails 2.3.8, it doesn't work. The div class="pagination" is safe_html but everything inside (spans, links, etc) is escaped... :(
Just made a pull request about this issue :)
Flink's patch is work fine (rails 2.3.8)
Thanks. Released 2.3.13