docs: public static String getTextValue(Element element) {
          String ret = "";
          String textContent = element.getTextContent();
          if (textContent != null && !textContent.equals("")) {
              ret = textContent;
          } else if (element.hasAttribute("title")) {
              ret = element.getAttribute("title");
          } else if (element.hasAttribute("alt")) {
              ret = element.getAttribute("alt");
          }
          if (ret.length() > TEXT_CUTOFF) {
              return ret.substring(0, TEXT_CUTOFF);
          } else {
              return ret;
          }
      }