I am trying to display content from database which has ‘&’ and needs to be displayed in a browser. I have included:-
response.setContentType("text/html; charset=utf-8");
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
But still cant display the content to browser.
Replace the
&with the corresponding html entity&.