static ThreadLocal dynamize_linkParams = new ThreadLocal; sS dynamize_noEncode(S html) { L tok = htmlTok(html); Pattern p = Pattern.compile([[(?:#|\blib\s+|(?:^|\n)\s*!)([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), m.group(), conatArrays(title := getSnippetTitle_cached(id), dynamize_linkParams!))); } m.appendTail(buf); tok.set(i, dynamizeGlobalIDsInHTML(str(buf).replace("&~~~", "&#"))); } dynamize_linkParams.set(null); ret join(tok); }