"{"title":"Title","html":"<div>Text</div><div><br></div>","message":"Message"}"
And i have a java class like : import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.springframework.web.util.HtmlUtils;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Note {
private String id;
private String title;
@JsonProperty("html")
private String body;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public void parseHtml() {
body = HtmlUtils.htmlEscape(body);
title = HtmlUtils.htmlEscape(title);
}
}
The controller corresponding to this request is :Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.