This will fail in unexpected ways if either of these options happens to contain a `[`, `]` or `|`. I think it would be better to build this with HTML/jQuery (`$("<a>").attr('href', …)…`).