Sanitize your strings in JavaScript like a Rails developer
What if you could write JavaScript that gets _really_close to what you can do with Ruby/Rails? https://railsdesigner.com/sanitize-javascript-like-rails/ In this article I creating a sanitize
method to clean up content from trailing/leading white-spaces, multiple new lines and essentially whatever else you want (or not!) 🧹
Post a comment