dj_angles.replacers.comments ============================ .. py:module:: dj_angles.replacers.comments Module Contents --------------- .. py:function:: mask_comments(html: str, initial_tag_regex: str = '(dj-)') -> tuple[str, list[str]] Mask Django and custom comments in the HTML string. :param html: The HTML string to process. :param initial_tag_regex: The regex for the tag prefix. :returns: A tuple containing the masked HTML string and a list of original comments.