View Source z_svg (zotonic_stdlib v1.16.0)
Link to this section Summary
Functions
Sanitize a binary containing a SVG
Sanitize an element from the SVG parse tree. Also called from z_html.erl
Link to this section Types
-type svg_element() :: binary() | {binary(), list(), list()} | {comment, binary()}.
Link to this section Functions
-spec sanitize(binary()) -> binary().
-spec sanitize_element(svg_element() | term()) -> svg_element().