Philip Hallstrom
2006-May-11 19:15 UTC
[Rails] Using action view helpers (strip_tags) in a rake task?
Hi all - I''ve got a rake task that migrates some old data (simple, loop through the old stuff, modify it a bit, and save it to the new system). That all works great. However, I''d like to use strip_tags() to remove all HTML from some of the fields I''m converting, but I can''t figure out how to include/use/require/load/etc the right stuff to make this work. For now, I just copied the strip_tags() definition out of the text_helper.rb file, but that is evil(tm)... Am I just missing something obvious? Thanks! -philip
Maybe Matching Threads
- Want to use a view helper (TextHelper) in a model class
- Insert using Rake Task
- Missing earlier versions work around for "XSS Vulnerability in strip_tags"
- better way to include helpers into application controller/test_helper?
- [Security] Loofah has an HTML injection / XSS vulnerability, please upgrade to 0.4.6