method
strip_tags
v1.2.6 -
Show latest stable
- Class:
ActionView::Helpers::TextHelper
strip_tags(html)public
Strips all HTML tags from the html, including comments. This uses the html-scanner tokenizer and so its HTML parsing ability is limited by that of html-scanner.
1Note
Replacement
In modern Rails, use http://apidock.com/rails/ActionView/Helpers/SanitizeHelper/strip_tags