Rails 4.1 html and tags chars sanitize

May 18, 2015

To remove all tags and chars like 'nbsp;' in rails 4.1 do that:
= sanitize(post.description).truncate(350, :separator => " ").html_safe
Rails 4.1 html and tags chars sanitize - May 18, 2015 - {"name"=>"Stanislav Knyazev", "email"=>"extazystas@gmail.com"}