asked in JSP by (58.6k points)

1 Answer

We can use c:out escapeXml attribute to escape the HTML elements so that it get’s shown as text in the browser, for this scenario we will write code like below.

<c:out value="<br> creates a new line in HTML" escapeXml="true"></c:out>
answered by (58.6k points)

Java Interview Questions and Answers 2018