import re


def remove_comments(source: str) -> str:
    """Remove all the html comments from a string."""
    pattern = re.compile(r'<!--(.*?)-->', re.MULTILINE | re.DOTALL)
    return pattern.sub('', source)