Skip to content

Commit

Permalink
Merge pull request #106 from TrueSparrowSystems/create-accounts-event
Browse files Browse the repository at this point in the history
Added html decode for note content response
  • Loading branch information
Raj-Shah1 authored Oct 10, 2023
2 parents 6f34ccb + 999b80b commit 6c420bf
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 6c420bf

Please sign in to comment.