SanitizeHelper
I need to start somewhere and while it may not be the most informative post ever, I’ll try to cover this feature as much as I can. Everything here is already described in the Rails Api so it should be a great idea to keep it as a reference. I’ll also try to add what I have learned
There are 4 methods in the sanitize helper.
strip_tags
Remove any html tags from your the input provided. If you truncate, you may see <a. strip_tags before you truncate.
strip_links
Remove any links from your markup and return only the text of the link