Here you can find the source of unescape(final CharSequence target)
public static CharSequence unescape(final CharSequence target)
//package com.java2s; //License from project: Open Source License public class Main { public static CharSequence unescape(final CharSequence target) { final StringBuilder buff = builder(); final int len = target.length(); for (int i = 0; i < len; i++) { final char ch = target.charAt(i); if (ch == '#') { i++;/*from ww w.j a v a2 s. c o m*/ buff.append(target.charAt(i)); } else { buff.append(ch); } } return buff; } public static StringBuilder builder() { return new StringBuilder(); } }