From 999b80b17276f895b187a6991ce6b1c0e210c649 Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Tue, 10 Oct 2023 14:17:23 +0530 Subject: [PATCH] Added html decode for note content response --- .../lib/salesforce/dto/SalesforceGetNoteDetailsDto.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }