HtmlEntities v0.4.0 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

Convert a list 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_lines_to_entities(lines) View Source
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.

Link to this function load_entities(filename) View Source
load_entities(String.t) :: [entity]

Load HTML entities from an external file.