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
Link to this function
cast(value)
Link to this function
dump(value)
Link to this function
embed_as(_)
Link to this function
equal?(term1, term2)
Link to this function
input_type()
Link to this function
load(value)
Link to this function