View Source Antikythera.TemplateSanitizer (antikythera v0.5.1)

Summary

Functions

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

Marks data as HTML safe to avoid double-escaping.

Types

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

Functions

@spec html_escape(String.t()) :: String.t()

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

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

Marks data as HTML safe to avoid double-escaping.