1
String mssg=mssg+"<ul onClick='getValue(this)'><li><click me</li></ul>";

I'm executing the java class which consist above code and retrieves the output in html page by using mssg variable. But in html page the value of mssg comes like.....

 <ul onClick='getValue&x28;this&x29;'><li><click me</li></ul>

As we know the ascii value(hexa) of '(' is &#x28 but it comes something different. So please help me to get the parenthesis instead of ascii code. And why parenthesis is converted to that value, please explain.

Neeraj Jain
  • 7,643
  • 6
  • 34
  • 62
Mrinmoy
  • 21
  • 2

0 Answers0