z_sanitize (zotonic_core v1.0.0-rc.12)

Interface to z_html sanitizers, sets options and adds embed sanitization.

Link to this section Summary

Link to this section Functions

Link to this function

default_sandbox_attr(Context)

Link to this function

ensure_safe_js_callback(Callback)

-spec ensure_safe_js_callback(string() | binary()) -> binary().
Escape a Javascript callback function. Crash if not a safe callback function name.
Link to this function

escape_link(Trans)

Link to this function

escape_link(V, Context)

Link to this function

escape_props(Props)

Link to this function

escape_props(Props, Context)

Link to this function

escape_props_check(Props)

Link to this function

escape_props_check(Props, Context)

Link to this function

html(Html, Context)