Forum: Ruby on Rails Sanitize within helpers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Michael Ragalie (Guest)
on 2009-03-24 16:57
(Received via mailing list)
Hello,
I used to be able to call sanitize (or h) in helpers. When I updated to
2.3.2 it seems like I am no longer able to access helper methods within
other helpers. Any tips on how I might be able to get this working
again?

Thanks,
-Mike
Chris K. (Guest)
on 2009-03-25 16:56
(Received via mailing list)
You should be able to call something like:

clean_html = HTML::Sanitizer.new.sanitize(dirty_html)


On Tue, Mar 24, 2009 at 3:35 PM, Michael Ragalie <
This topic is locked and can not be replied to.