Module z_sanitize

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

Copyright © 2014 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

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

Function Index

ensure_safe_js_callback/1Escape a Javascript callback function.
escape_link/1
escape_link/2
escape_props/1
escape_props/2
escape_props_check/1
escape_props_check/2
html/1
html/2
uri/1

Function Details

ensure_safe_js_callback/1

ensure_safe_js_callback(Callback::string() | binary()) -> binary()

Escape a Javascript callback function. Crash if not a safe callback function name.

escape_link/1

escape_link(Trans) -> any()

escape_link/2

escape_link(V, Context) -> any()

escape_props/1

escape_props(Props) -> any()

escape_props/2

escape_props(Props, Context) -> any()

escape_props_check/1

escape_props_check(Props) -> any()

escape_props_check/2

escape_props_check(Props, Context) -> any()

html/1

html(Html) -> any()

html/2

html(Html, Context) -> any()

uri/1

uri(Uri) -> any()


Generated by EDoc