Skip to content

Commit

Permalink
listings - encode category names as base64 to avoid escaping issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Oct 23, 2024
1 parent 8986a98 commit ef1648d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/projects/website/listing/item-grid.ejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ return !["title", "image", "image-alt", "date", "author", "subtitle", "descripti

<div class="listing-categories">
<% for (const category of item.categories) { %>
<div class="listing-category" onclick="window.quartoListingCategory('<%=category%>'); return false;"><%= category %></div>
<div class="listing-category" onclick="window.quartoListingCategory('<%=btoa(category)%>'); return false;"><%= category %></div>
<% } %>
</div>

Expand Down

0 comments on commit ef1648d

Please sign in to comment.