How to change less than or greater than symbol in Jelly script

manish123
Giga Guru

We have input box generated in Jelly, which allowing user to enter character. And whenever they entered symbols like &, <, >, ¬ are changing into special characters.

I am successfully replacing & into and .

for an example :-

replace(/${AMP}/g,"and ");

However when i am trying similarly for < or > respectively it didn't accept.

replace(/${AMPlt;}/g,"lt ");

replace(/${AMPgt;}/g,"gt ");

Any idea or help much appreciated.

2 REPLIES 2

Mike Allen
Mega Sage

Less than is &lt;   Greater than is &gt;   Ampersand is $[AMP]


manish123
Giga Guru

This has been sorted out by using HTML number instead on HTML name.