legacy/src/main/java/thredds/util/DodsURLExtractor.java
private InputStream filterTag(InputStream in) throws IOException {
    BufferedReader buffIn = new BufferedReader(new InputStreamReader(in, CDM.UTF8));
    ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);

    String line = buffIn.readLine();
    while (line != null) {
      String lline = line.toLowerCase();
      if (lline.contains("<meta "))  // skip meta tags
        continue;
      //System.out.println("--"+line);
      bos.write(line.getBytes(CDM.utf8Charset));
      line = buffIn.readLine();
    }
    buffIn.close();

    return new ByteArrayInputStream(bos.toByteArray());
  }
private InputStream filterTag(InputStream in) throws IOException {
    BufferedReader buffIn = new BufferedReader(new InputStreamReader(in, CDM.UTF8));
    ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);

    String line = buffIn.readLine();
    while (line != null) {
      String lline = line.toLowerCase();
      if (lline.contains("<meta "))  // skip meta tags
        continue;
      //System.out.println("--"+line);
      bos.write(line.getBytes(CDM.utf8Charset));
      line = buffIn.readLine();
    }
    buffIn.close();

    return new ByteArrayInputStream(bos.toByteArray());
  }
workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"