View Source z_svg (zotonic_stdlib v1.21.0)

Utility functions for svg processing.

Summary

Functions

Sanitize a binary containing a SVG
Sanitize an element from the SVG parse tree. Also called from z_html.erl

Types

-type svg_element() :: binary() | {binary(), list(), list()} | {comment, binary()}.

Functions

-spec sanitize(binary()) -> binary().
Sanitize a binary containing a SVG
-spec sanitize_element(svg_element() | term()) -> svg_element().
Sanitize an element from the SVG parse tree. Also called from z_html.erl