I\'m trying to call sanitize within a controller. Here\'s what I tried:
sanitize
class FooController < ApplicationController include ActionView::Hel
you can use this ActionController::Base.helpers inside action method:
ActionController::Base.helpers
class SiteController < ApplicationController def index render :text => ActionController::Base.helpers.sanitize('bold') end end
Hope this helps