jquery - Text after "<" symbol gets truncated -
this question has answer here:
- how display text tags in jsp 3 answers
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<name"
Comments
Post a Comment