Fix double HTML-encoding in category names (#2897)

Category names are already HTML-encoded when reaching the view.
This commit is contained in:
Alexandre Alapetite
2020-04-12 16:36:45 +02:00
committed by GitHub
parent 14fa3f2781
commit 82278af7a9

View File

@@ -83,11 +83,11 @@
</div>
<script id="jsonStats" type="application/json"><?php
echo htmlspecialchars(json_encode(array(
echo json_encode(array(
'average' => $this->average,
'dataCount' => $this->count,
'feedByCategory' => $this->feedByCategory,
'entryByCategory' => $this->entryByCategory,
), JSON_UNESCAPED_UNICODE), ENT_NOQUOTES, 'UTF-8');
), JSON_UNESCAPED_UNICODE);
?></script>
<script src="../scripts/stats.js?<?= @filemtime(PUBLIC_PATH . '/scripts/stats.js') ?>"></script>