how would I concatenate a string so It can be rendered in HTML properly?
<c:set var="filter" value="${view}"/>
For example, I do something like this in JavaScript:
var view;
var sors;
var filterCriteria = view + "<br>";
if (sors != null)
{
filterCriteria = filter + "SORs: " + sors + ", ";
}
Then the answer is
or
The first one doesn’t escape the HTML special chars in
view(<,>,&,',"), whereas the second one does (and transforms them to<,>,&, etc.)