Displaying content in JSP page, want but not other Html tags
[nobr]I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with
no problem. Now my issue is that I display that in the JSP page:
<c:out value="${filecontents}" escapeXml="false" />
I use escapeXml so that
will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
Is there a way to do that? Would I have to replace HTML tags with something special?[/nobr]

