class HTMLPipeline::SanitizationFilter

A special filter with sanization routines and allowlists. This module defines what HTML is allowed in user provided content and fixes up issues with unbalanced tags and whatnot.

See the Selma docs for more information on the underlying library:

github.com/gjtorikian/selma/#readme

This filter does not write additional information to the context.