I want to call fn:replace inside EL inside c:out to replace quote caracters.
The following does not work
<c:out value="${fn:replace(userName,'"','"')}"/>
because XML parser stops at first double quote and sees no c:cout tag termination (JSP compilation stage error).
The following
<c:out value="${fn:replace(userName,'"','\"')}"/>
does not work, probably because replace function does not see actual quote character.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…