Want to put processing logic in Controller but no strip_tags

I want to put the processing logic in the controller… and it has a
strip_tags call… and the controller portion will say the function
doesn’t exist.

so is there a way to call strip_tags from the controller? (instead of
from view).

Jian L. wrote:

I want to put the processing logic in the controller…
[…]

No you don’t. In general, that sort of logic should probably be in a
model. If you can say more about what you’re trying to accomplish,
perhaps we can give more specific suggestions.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

See this note on getting strip_tags outside views:

http://apidock.com/rails/ActionView/Helpers/SanitizeHelper/strip_tags#537-strip-tags-method-not-functioning-in-controllers-models-or-libs

Regards
Kieran