code: public static String rich(SlingHttpServletRequest request, String value) {
          if (value != null) {
              // ensure that a rich text value is always enclosed with a HTML paragraph tag
              if (StringUtils.isNotBlank(value) && !value.trim().startsWith("<p>")) {
                  value = "<p>" + value + "</p>";
              }
              // transform embedded resource links (paths) to mapped URLs
              value = map(request, value);
              value = escapeRichText(value);
          }
          return value;
      }
docs: Returns the escaped text of a rich text value (reduced HTML escaping).
  
  @param value the rich text value to escape
  @return the escaped HTML code of the value