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 -

c - Defining floating point constants, how many digits are useful? -

C# Apple Bonjour - how to monitor service records within Windows -