Source:

const regex = /<--(.*?)-->/gm
html = html.replace(regex, '');