Phoenix.HTML.Safe protocol

Defines the HTML safe protocol.

In order to promote HTML safety, Phoenix templates do not use Kernel.to_string/1 to convert data types to strings in templates. Instead, Phoenix uses this protocol which must be implemented by data structures and guarantee that a HTML safe representation is returned.

Summary

to_string(data)

Types

t :: term

Functions

to_string(data)