import re


def new_line_to_br(text: str) -> str:
    """
    Transform new lines to HTML tags.

    Args:
        text (str): Text from textarea.

    Returns:
        str: Text with <br />.
    """
    return re.sub(r"\n", "<br />", text, flags=re.UNICODE)