Skip to content

Commit

Permalink
fix: character escaping (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgatellier authored Dec 6, 2023
1 parent a639ab4 commit d46cd31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/components/result-load-range.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
{{/* TODO: add to dictionary */}}
<span>{{ i18n "Min" }}</span>
{{/* TODO: get medium from api ? */}}
<span>{{ i18n "Median" }} {{ $rangeMedianRounded }}</span>
<span>{{ i18n "Median" | safeHTML }} {{ $rangeMedianRounded }}</span>
<span>{{ i18n "Max" }}</span>
</div>
</div>
<div class="rlr-infos">
<span class="rlr-target-info">{{ i18n "Target" }} {{ .rangeValueTarget | markdownify }}</span>
<span class="rlr-unit">{{ i18n "Unit" }} {{ .unitsLegend | markdownify }}</span>
<span class="rlr-target-info">{{ i18n "Target" | safeHTML }} {{ .rangeValueTarget | markdownify }}</span>
<span class="rlr-unit">{{ i18n "Unit" | safeHTML }} {{ .unitsLegend | markdownify }}</span>
</div>
</div>
4 changes: 2 additions & 2 deletions layouts/partials/widgets/result-appreciation.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
</div>
<h2 data-int="grade_title"></h2>
<p class="font-size:1">
{{ i18n "ResultScore" }} <span><span data-int="score">0</span> / 100</span>
{{ i18n "ResultScore" | safeHTML }} <span><span data-int="score">0</span> / 100</span>
</p>
<hr class="small" />
<div class="info-collapse">
{{ $label := i18n "ResultScoreExplainationLabel" }}
{{ $content := i18n "ResultScoreExplainationContent" }}
{{ $knowMore := i18n "ResultScoreExplainationKnowMore" }}
{{ $knowMore := i18n "ResultScoreExplainationKnowMore" | safeHTML }}
{{ $moreHref := i18n "HowDoesItWorksURL" }}
{{ $moreLabel := i18n "HowDoesItWorksTitle" }}

Expand Down

0 comments on commit d46cd31

Please sign in to comment.