Provides functions for sanitizing Ecto.Changeset
fields.
Uses the HtmlSanitizeEx
library
to sanitize all string fields in an %Ecto.Changeset{}
struct.
See https://hexdocs.pm/ecto_sanitizer/EctoSanitizer.html#sanitize_all_strings/2 for usage examples.
The package can be installed by adding ecto_sanitizer
to your list of
dependencies in mix.exs
:
def deps do
[
{:ecto_sanitizer, "~> 0.1.0"}
]
end
Documentation can be found at https://hex.pm/ecto_sanitizer