eex_html v1.0.0 EExHTML.Safe protocol

This protocol is responsible for converting a structure to content that can be safely included in an HTML page.

The only function required to be implemented is to_iodata, which does the conversion.

If this protocol is not implemented for a term it falls back to String.Chars.to_string/1 and handles HTML escaping.

Link to this section Summary

Functions

Converts a term to iodata

Link to this section Types

Link to this section Functions

Converts a term to iodata.