def inline(text):
    """
    Convert all newline characters to HTML entities: &#10;
    This can be used to prevent Hypertag from indenting lines of `text` when rendering parent nodes,
    and to safely insert `text` inside <pre>, <textarea>, or similar elements.
    """
    return text.replace('\n', '&#10;')