fix URL encoding of [] in URL generation
fix &amp; in href
fix HTML validity