code: public String html(String text) {
          if (text == null || text.isEmpty()) {
              return text;
          }
          return StringEscapeUtils.escapeHtml4(text);
      }
docs: HTML Encodes the provided text.
  
  @param text the text to encode
  @return the HTML encoded text