Hi guys !
I’ve been struggling for quite some time now trying to load .img files with ejs . And I have finally everything working. Or so I thought
Here is the html code
<td><img src= <%- result[i].logopath %> alt="" style="width:25px;height:15px;"/> <%= result[i].country %></td>
This works fine , but whenever there is a spacing in var the html gets messed up. Like so when inspecting the page
<img src="images/flags/Costa" rica.png="" alt="" style="width:25px;height:15px;">
Any fix for this or do I have to abandon using space in the file names ?