问题
I want to write a string with quotes in a jsp page which is using jstl tag c:out for its value that means I want to write: c:out value = '"4"' Please suggest asap..
回答1:
Did you try to use escapeXml attribute?
<c:out value='"4"' escapeXml="false"></c:out>
回答2:
Try this.
<c:out value='\\"4\\"'/>
来源:https://stackoverflow.com/questions/20425246/write-string-with-quotes-in-cout-vaue