Skip to content

Commit

Permalink
fix hackathon name special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Feb 16, 2021
1 parent 654b552 commit 768a764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/templates/dashboard/hackathon/new_bounty.html
Original file line number Diff line number Diff line change
Expand Up @@ -518,15 +518,15 @@ <h5 class="text-uppercase h3 font-weight-bold mb-0">Total</h5>
<script src="{% static "v2/js/lib/polkadot/utils.js" %}"></script>

<script src="{% static "v2/js/lib/binance/utils.js" %}"></script>

{{hackathon.name|json_script:"hackathon_name"}}
<script>
$('body').bootstrapTooltip({
selector: '[data-toggle="tooltip"]'
});
const csrftoken = jQuery("[name=csrfmiddlewaretoken]").val();
document.hackathon = {
slug: '{{hackathon.slug | safe}}',
name: '{{hackathon.name | safe}}',
name: JSON.parse(document.getElementById('hackathon_name').textContent),
endDate: '{{hackathon.end_date|date:"U"}}',
};

Expand Down

0 comments on commit 768a764

Please sign in to comment.