docs: public String process(String input) {
          Document doc = Jsoup.parse(input);
  
          // check if the user wants to inline the data
          Elements elements = doc.getElementsByAttributeValue(DATA_INLINE_ATTR, "true");
          if (elements.isEmpty()) {
              return input;
          }
  
          extractStyles(doc);
          applyStyles(doc);
          inlineImages(doc);
  
          doc.outputSettings(doc.outputSettings().syntax(Document.OutputSettings.Syntax.xml).prettyPrint(false).escapeMode(Entities.EscapeMode.extended));
          return StringEscapeUtils.unescapeHtml(doc.outerHtml());
      }