I have read that using <c:out> tag will prevent XSS attacks but for some cases, say for example, displaying units with superscript (kg/m3) using <c:out> is displayed as plain text with sup tag (kg/m<sup>3</sup>). In order to display it properly, escapeXml="false" has to be used.
<c:out value="${units}" escapeXml="false></c:out>
But I was wondering whether using <c:out> tag with escapeXml="false" is equivalent to not using <c:out> tag itself?