← All projects

tooling · 2009

HTML Sanitizer

Sanitize chosen model attributes before save.

html_sanitizer :sanitize => [:name, :description]

Overview

A Rails plugin that wraps the sanitize gem. Declaring html_sanitizer on a model runs sanitization in a before_save callback, with an optional Sanitize config.

Stack

RubyRails

More from the quarry