Is there any way to add a special character using a substring with a given length?
String example= "abcde & fghijk";
System.out.printLn("(StringUtils.substring(StringEscapeUtils.escapeXml(example)),0,12));
current output("abcde & f")
expected output("abcde & fghij")
Please help. Thanks