How to replace HTML comments with custom <comment> elements,"re.sub('(<!--)|(<!--)', '<comment>', child.text, flags=re.MULTILINE)"