HtmlEntities v0.5.1 HtmlEntities.Util 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

Link to this section Functions

Link to this function

convert_line_to_entity(line)

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

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

Link to this function

load_entities(filename)

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

Load HTML entities from an external file.