def METHOD_NAME(html: str,
                           length_limit_head: int = 4096,
                           head_count: int = -1,
                           length_limit_tail: int = 4096) -> list[tuple[str, list[TypeMessageEntity]]]:
    full_text, all_entities = parse(html)
    return text_and_format_entities_split(full_text, all_entities, length_limit_head, head_count, length_limit_tail)