0

When I call the fuction javax.swing.text.Document#insertString(...) with a text containing a < i get something like &lt; rendered. The expected output would be <. Is there any way to manage that?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Armin
  • 351
  • 1
  • 4
  • 29

1 Answers1

0

&lt; stands for the less-than sign < and &gt; stands for the greater-than sign >

What do entities: &lt; and &gt; stand for?

I think(not really sure) you can replace like

string.replaceAll("&l t;","<");

wish I could add comment, instead of answering but my reputation is not allowing me to do.

Community
  • 1
  • 1
Y.Kaan Yılmaz
  • 612
  • 5
  • 18