HtmlEntities.Util (HtmlEntities v0.5.2) View Source

Utility functions for managing metadata.

Putting this code here makes it testable, and allows the code generation part of HtmlEntities to be as small as possible.

Link to this section Summary

Functions

Converts a line of comma-separated lines to entity definitions.

Load HTML entities from an external file.

Link to this section Types

Specs

entity() :: {String.t(), String.t(), integer()}

Link to this section Functions

Link to this function

convert_line_to_entity(line)

View Source

Specs

convert_line_to_entity([String.t()] | File.Stream.t()) :: entity()

Converts a line of comma-separated lines to entity definitions.

Specs

load_entities(String.t()) :: [entity()]

Load HTML entities from an external file.