From: Martin S. <do....@gm...> - 2011-06-23 16:14:32
|
On Thu, 23 Jun 2011 18:01:08 +0200, Alexander Fahlke <ale...@go...> wrote: > I'm new to NekoHTML and wonder how to remove HTML comments? You can do this with a simple filter: public class StripCommentsFilter extends DefaultFilter { @Override public void comment(XMLString string, Augmentations augs) throws XNIException { // Ignore comments } } Check the documentation to see how you can use filters: http://nekohtml.sourceforge.net/filters.html#overview.append |