antikythera v0.4.0 Antikythera.TemplateSanitizer View Source

Link to this section Summary

Functions

Converts special characters in the given string to character entity references.

Marks data as HTML safe to avoid double-escaping.

Link to this section Types

Specs

safe() :: {:safe, String.t()}

Link to this section Functions

Specs

html_escape(String.t()) :: String.t()

Converts special characters in the given string to character entity references.

Specs

raw(String.t() | safe()) :: safe()

Marks data as HTML safe to avoid double-escaping.