sS dynamize_noEncode(S html) { L tok = htmlTok(html); Pattern p = Pattern.compile("#([0-9]+)"); for (int i = 0; i < l(tok); i += 2) { Matcher m = p.matcher(tok.get(i).replace("&#", "&~~~")); new StringBuffer buf; while (m.find()) { S id = m.group(1); mreplace(m, buf, ahref(snippetLink(id), "#" + id)); } m.appendTail(buf); tok.set(i, dynamizeGlobalIDsInHTML(str(buf).replace("&~~~", "&#"))); } ret join(tok); }