Rails-Inspired JavaScript: How to Sanitize Strings Like a Ruby Pro - Searchlysis Developer