code: public static String stripHtmlFromPropertyIfNecessary(String propertyName, String value) {
  
          if (propertyName.equals(CmsPropertyDefinition.PROPERTY_DESCRIPTION_HTML)) {
              try {
                  return CmsHtmlExtractor.extractText(value, CmsEncoder.ENCODING_UTF_8);
              } catch (ParserException | UnsupportedEncodingException e) {
                  LOG.warn("Could not strip HTML from property value. Returning the original value.", e);
              }
          }
          return value;
  
      }
docs: Strips of HTML of the value to map, if necessary (depending on the property name).
  @param propertyName name of the property.
  @param value the properties value (possibly with HTML)
  @return the value with HTML stripped of, or the original value, if stripping of the HTML fails.