So, I have a javascript string which is actually some html markup assigned to it.
Now, I want to remove all the html comments and its content from the string, ie all the occurrences of the opening comment tag and closing comment tag; along with the comment inside in it.
So I want to remove all occurences of
<!-- some comment -->
Please note I want ' some comment ' removed as well...
Can someone help me with the regex to replace this...
Thanks