When I call the fuction javax.swing.text.Document#insertString(...) with a text containing a < i get something like < rendered. The expected output would be <. Is there any way to manage that?
Asked
Active
Viewed 82 times
0
Andrew Thompson
- 168,117
- 40
- 217
- 433
Armin
- 351
- 1
- 4
- 29
-
1it gets Encoded that's why it appears as `<`. – Youssef NAIT Mar 03 '16 at 14:13
-
yeah, I see, but I want do render `<` as said... Is there any solution? – Armin Mar 03 '16 at 14:16
1 Answers
0
< stands for the less-than sign < and > stands for the greater-than sign >
What do entities: < and > 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