code: public static String text(String value) {
          return value != null ? StringEscapeUtils.escapeHtml4(value) : value;
      }
docs: Returns the escaped text of a value (HTML escaping to prevent from XSS).
  
  @param value the value to escape
  @return the HTML escaped text of the value