/** * Get the ISO show value for locale independent exporting to xml typically same as show value, * date and number values are formatted by iso format * * @param fieldID * @param parameterCode * @param value * @param workItemID * @param localLookupContainer * @param locale * @return */ @Override public String getShowISOValue( Integer fieldID, Integer parameterCode, Object value, Integer workItemID, LocalLookupContainer localLookupContainer, Locale locale) { try { TagReplacer replacer = new TagReplacer(Locale.getDefault()); replacer.setContextPath(Constants.BaseURL); return Html2Text.getCustomInstance().convert(replacer.formatDescription((String) value)); } catch (Exception e) { LOGGER.info("Converting to ISO text failed with " + e); LOGGER.debug("The original text is: " + (value == null ? "null" : value.toString())); return (String) value; } }