-1

I have data in this format <b><i>testing </i> </b> and I need to convert this string into an equivalent java string. Can anyone suggest the process? Thank you

Foo L
  • 10,977
  • 8
  • 40
  • 52
Nagarjun
  • 27
  • 6

1 Answers1

0

try this :

 import static org.apache.commons.lang.StringEscapeUtils.escapeHtml;
// ...
String source = "<b><i>testing </i> </b>";
String escaped = escapeHtml(source);
Salah
  • 8,567
  • 3
  • 26
  • 43