jquery - Text after "<" symbol gets truncated -


this question has answer here:

i found problem setting value in jsp. have element stored in database, if provide value "phenom<name" in database saves "phenom<name".but while displaying data user text after "<" symbol gets truncated , displays "phenom<" instead of "phenom<name"

you need escape it..

<c:out value="phenom<name" /> 

or

${fn:escapexml('phenom<name')} 

or

"phenom&lt;name" 

Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -