How can remove the comments and contents of the comments from an html file using Java where the comments are written like:
<!--
Any idea or help needed on this.
Take a look at JTidy, the java port of HTML Tidy. You could override the print methods of the PPrint object to ignore the comment tags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With