fast_sanitize v0.1.6 FastSanitize.Sanitizer behaviour

Defines the contract that Sanitizer modules must follow.

Link to this section Summary

Functions

Scrubs a text node.

Callbacks

Scrubs a document node.

Link to this section Functions

Link to this function

scrub(doc, scrubber)

Scrubs a text node.

Link to this section Callbacks

Link to this callback

scrub({})

scrub({atom(), list(), list()}) :: tuple()
scrub({binary(), list(), list()}) :: tuple()
scrub(binary()) :: binary()

Scrubs a document node.