mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 09:08:41 +00:00
fix: long announcement breaks sidebar
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e8125e7e3a
commit
a5d632c21c
@ -18,7 +18,7 @@
|
|||||||
<?= $group['title'] ?>
|
<?= $group['title'] ?>
|
||||||
</a>
|
</a>
|
||||||
<?php if ($group_announcement): ?>
|
<?php if ($group_announcement): ?>
|
||||||
<div id="announcement-content-<?= $group['id'] ?>"></div>
|
<div id="announcement-content-<?= $group['id'] ?>" class="text-break"></div>
|
||||||
<script>(function(){
|
<script>(function(){
|
||||||
$('#announcement-content-<?= $group['id'] ?>')
|
$('#announcement-content-<?= $group['id'] ?>')
|
||||||
.html(DOMPurify.sanitize(decodeURIComponent("<?= urlencode($group_announcement) ?>"), <?= DOM_SANITIZE_CONFIG ?>));
|
.html(DOMPurify.sanitize(decodeURIComponent("<?= urlencode($group_announcement) ?>"), <?= DOM_SANITIZE_CONFIG ?>));
|
||||||
|
Loading…
Reference in New Issue
Block a user