hltflow.sanitize

A collection of helper functions for sanitizing text.

hltflow.sanitize.sanitize_for_latex(text)[source]

Sanitzes text for use within LaTeX. Escapes LaTeX special characters in order to prevent errors.

hltflow.sanitize.sanitize_prefix(prefix)[source]

Sanitizes a prefix to be used for TiKz coordinates. Allowed characters are lower case ASCII letters, digits and the hyphen.