static S html_addTargetBlank(S html) { L tok = htmlTok(html); for (int i = 1; i < l(tok); i += 2) { S t = tok.get(i); if (isTag(t, "a")) { SS map = htmlParams(t); if (map.containsKey("href")) { map.put("target", "_blank"); tok.set(i, hopeningtag("a", mapToParams(map))); } } } ret join(tok); }