I am trying to convert Java String into HTML readable code.
For Example: H e l l o W o r l d as H e l l o W o r l d
What I did so far:
private static String convertToAscii(String str) {
for(int i=0; i<str.length(); i++) {
str += "&#"+(int)str.charAt(i);
}
return str;
}
its taking too much time plus processor fan making noice.
Thanks in advance
