Answer the question
In order to leave comments, you need to log in
How to escape characters in jsp text variable?
Help. There is a jsp tag that calls a variable, let's say name, which in turn takes data from the database.
<c:set var="title" value="№${.name}"/>
So, if the value of the name variable contains a double quote, then when displayed in the browser. The quotes turn into ancii code. It is necessary to somehow escape the name variable after getting it from the database.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question