The value of the `href` attribute should have quotes around it: `<a href="<%= array[2] %>">` (what you have here may still work depending on the browser, but is not valid HTML)