i’m using JSTL <c:out> in my project to support javascript code, i have a string that comes from the servlet like this "2\'000;11\'222;10\'333" with javascript i’d like to split it to obtain separated values like 2'000;11'222;10'333….but when i use the <c:out> tag this "\'" becames "\'" messing up the split function….
is there a way to tell JSTL not escape chars ?
stringaCompleta += 'Gennaio;<c:out value="${valori.value}" />';
Simply don’t use the
c:outtag at all:Or use it with
escapeXmlset to false (but it’s needlessly complex):The documentation would have told you.