Skip to content

Commit

Permalink
Added html decode for note content response
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-Shah1 committed Oct 10, 2023
1 parent 1794d18 commit 999b80b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 999b80b

Please sign in to comment.