HtmlEntities v0.2.2 HtmlEntities.Util

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.

Summary

Functions

Convert a list of comma-separated lines to entity definitions

Load HTML entities from an external file

Types

Functions

convert_lines_to_entities(lines)

Specs

convert_lines_to_entities([String.t] | File.Stream.t) :: [{String.t, String.t, String.t}]

Convert a list of comma-separated lines to entity definitions.

load_entities(filename)

Specs

load_entities(String.t) :: [entity]

Load HTML entities from an external file.