Action Text Sanitizer update to more inclusive language

How I went about updating my Action Text allowed tags/attributes

Now that we are rightly as a community removing references in Rails to language such as blacklist and whitelist, I thought I would share how I updated my action_text.rb file to use more inclusive terms that are now available in Rails.

Before I had to use:

Rails::Html::WhiteListSanitizer.allowed_tags << 'iframe’

And this is now able to be:

Rails::Html::Sanitizer.safe_list_sanitizer.allowed_tags << 'iframe’

You may find that if you update Rubocop you will be alerted to Naming/InclusiveLanguage: Consider replacing problematic term 'WhiteList' with 'allowlist' or 'permit’. in this file.

Recent posts View all

SEO

Google follows URLs in text

Today I learned that Google follows URLs even when they are plain text

Web Dev

Check in with your database

It pays to take a step back and look at how your database is set up every so often. You will often find quick wins and hidden tech debt.