code: private static void clean(Element e, String tag) {
          Elements targetList = getElementsByTag(e, tag);
          boolean isEmbed = "object".equalsIgnoreCase(tag)
                         || "embed".equalsIgnoreCase(tag)
                         || "iframe".equalsIgnoreCase(tag);
  
          for (Element target : targetList) {
              Matcher matcher = Patterns.get(Patterns.RegEx.VIDEO).matcher(
                      target.outerHtml());
              if (isEmbed && matcher.find()) {
                  continue;
              }
              target.remove();
          }
      }
docs: Clean a node of all elements of type "tag". (Unless it's a youtube/vimeo
  video. People love movies.)
  
  @param e
  @param tag