Hi,
I would like to remove any occurence of HTML comments and their surrounding HTML tags if they exist.
For example :
Everything should be removed from <! to -> included.
But at the same time, in
or in
... everything should be removed, including the surrounding tags (spans and divs here) whether or not they have an ID.
Thanks a lot to anyone who will help!
I would like to remove any occurence of HTML comments and their surrounding HTML tags if they exist.
For example :
Code:
<!-- some text here -->
Everything should be removed from <! to -> included.
But at the same time, in
Code:
<div id="any-id-here">
<!-- some text here -->
</div>
or in
Code:
<span id="any-id-here">
<!-- some text here -->
</span>
... everything should be removed, including the surrounding tags (spans and divs here) whether or not they have an ID.
Thanks a lot to anyone who will help!