code: public void handleEvent(Event event) {
          LOG.fine("PasswordHandler called");
  
          if (tagnames==null || tagnames.size() == 0) {
              LOG.warning("Password filter is active but there is no filter tagname configured!");
          }
  
          if (tagnames != null && event.getContent() != null
                  && event.getContent().length() > 0) {
              LOG.fine("Content before: " + event.getContent());
              for (String tagname : tagnames) {
                  event.setContent(event.getContent().replaceAll(
                          "<([^>]*)" + tagname
                                  + "([^>]*)>([^<]*)<([^>]*)/([^>]*)" + tagname
                                  + "([^>]*)>", REPLACE));
                  event.setContent(event.getContent().replaceAll(
                          "<([^>]*)" + tagname + "([^>]*)/([^>]*)>",
                          REPLACE));
  
              }
              LOG.fine("Content after: " + event.getContent());
          }
      }
docs: Replaces all configured elements with a ---replaced--- string.
  
  @param event the event