Class HTMLStripCharFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public final class HTMLStripCharFilter extends BaseCharFilter
A CharFilter that wraps another Reader and attempts to strip out HTML constructs.
  • Constructor Details

    • HTMLStripCharFilter

      public HTMLStripCharFilter(Reader in, Set<String> escapedTags)
      Creates a new HTMLStripCharFilter over the provided Reader with the specified start and end tags.
      Parameters:
      in - Reader to strip html tags from.
      escapedTags - Tags in this set (both start and end tags) will not be filtered out.
    • HTMLStripCharFilter

      public HTMLStripCharFilter(Reader in)
      Creates a new scanner
      Parameters:
      in - the java.io.Reader to read input from.
  • Method Details