Hi everybody, I need to annotate spans of a given plaintext with markup tags, for example:
Tagger t = new Tagger("I need a library to annotate plaintext."); // Character indices: 0123456789012345678901234567890123456789 t.annotate(0, 1, "i"); t.annotate(2, 16, "a", "href=\"#\""); t.annotate(9, 19, "b"); System.out.println(t.toString()); // Output: // <i>I</i> <a href="#">need a <b>library</b></a><b> to</b> ... // Or even better: // <i>I</i> <a href="#">need a <b>library</b></a><b class="split"> to</b> ... Before reinventing the wheel, does anybody know of a class/library to achieve this? Many thanks, Kaspar --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org