I am trying to create a href with html(), however the output is not correct. What is wrong with this jquery code?
$('#tag_modal').find('.modal-body').html("<a href='/companies/explore-companies?tags='"+data.results['tag_id']+">test</a>");
Output:
<div class="modal-body"><a 5="" href="/companies/explore-companies?tags=">test</a></div>
'in">test</a>"?