docs: private static String getDescriptionWithoutHtml(DetectorFactory factory) {
          String detailHTML = factory.getDetailHTML();
          // cut beginning and the end of the html document
          detailHTML = trimHtml(detailHTML, "<BODY>", "</BODY>");
          // replace any amount of white space with newline between through one
          // space
          detailHTML = detailHTML.replaceAll("\\s*[\\n]+\\s*", " ");
          // remove all valid html tags
          detailHTML = detailHTML.replaceAll("<[a-zA-Z]+>", "");
          detailHTML = detailHTML.replaceAll("</[a-zA-Z]+>", "");
          // convert some of the entities which are used in current FB
          // messages.xml
          detailHTML = detailHTML.replaceAll("&nbsp;", "");
          detailHTML = detailHTML.replaceAll("&lt;", "<");
          detailHTML = detailHTML.replaceAll("&gt;", ">");
          detailHTML = detailHTML.replaceAll("&amp;", "&");
          return detailHTML.trim();
      }