Fields.HtmlBody (fields v2.8.0)

An Ecto Type for bodies of html text. Strips out all HTML script tags to avoid XSS but allows other basic HTML elements to remain.

Example

schema "article" do
  field(:body, Fields.HtmlBody)
end

Link to this section Summary

Link to this section Functions