I need to strip the html when I am displaying a list of content with a short blurb.
How can I do this?
Right now it is displaying the tags, not what the tags render, but the actual tags like:
this is a article about <b>cars</b>
The content is safe as its done by all internal folk who can be trusted.
strip_tagscan be the method you are looking for.http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-strip_tags