diff --git a/src/main/java/com/salessparrow/api/lib/salesforce/dto/SalesforceGetNoteDetailsDto.java b/src/main/java/com/salessparrow/api/lib/salesforce/dto/SalesforceGetNoteDetailsDto.java index bb8422d2..9151bda6 100644 --- a/src/main/java/com/salessparrow/api/lib/salesforce/dto/SalesforceGetNoteDetailsDto.java +++ b/src/main/java/com/salessparrow/api/lib/salesforce/dto/SalesforceGetNoteDetailsDto.java @@ -2,6 +2,8 @@ import java.util.Date; +import org.springframework.web.util.HtmlUtils; + import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import com.salessparrow.api.dto.entities.NoteDetailEntity; @@ -27,8 +29,9 @@ private class CreatedBy { } public NoteDetailEntity noteDetailEntity(String noteContentResponse) { - NoteDetailEntity noteDetailEntity = new NoteDetailEntity(this.id, this.createdBy.name, noteContentResponse, - this.lastModifiedDate); + String decodedNoteContentResponse = HtmlUtils.htmlUnescape(noteContentResponse); + NoteDetailEntity noteDetailEntity = new NoteDetailEntity(this.id, this.createdBy.name, + decodedNoteContentResponse, this.lastModifiedDate); return noteDetailEntity; }