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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

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