res.append(quickEntities[idx]);
idx = entityMap.indexOf(c); if (idx == -1) { res.append(c); } else { res.append(quickEntities[idx]); }
	public static final String escape(String nonHTMLsrc) {		StringBuffer res = new StringBuffer();		int l = nonHTMLsrc.length();		int idx;		char c;		for (int i = 0; i < l; i++) {			c = nonHTMLsrc.charAt(i);			idx = entityMap.indexOf(c);			if (idx == -1) {				res.append(c);			} else {				res.append(quickEntities[idx]);			}		}		return res.toString();	}