Skip to content

Commit 4256623

Browse files
committed
update new html.
1 parent 2aa9a6f commit 4256623

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

omnigirl_leaderboard.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,13 @@ <h3>🙏 Acknowledgements</h3>
232232
.forEach((r, i) => {
233233
const medal = i === 0 ? '🥇 ' : i === 1 ? '🥈 '
234234
: i === 2 ? '🥉 ' : '';
235-
const orgIcon = r.org ? `<img src="${r.org}" style="height:1.5em;">` : '-';
236-
const siteLink = r.site ? `<a href="${r.site}" target="_blank">🔗</a>` : '-';
235+
236+
const orgUrl = (r.org || '').replace(/&amp;/g, '&');
237+
const siteUrl = (r.site || '').replace(/&amp;/g, '&');
238+
239+
const orgIcon = orgUrl ? `<img src="${orgUrl}" style="height:1.5em;">` : '-';
240+
const siteLink = siteUrl ? `<a href="${siteUrl}" target="_blank">🔗</a>` : '-';
241+
237242

238243
tbody.insertAdjacentHTML('beforeend', `
239244
<tr>

0 commit comments

Comments
 (0)