Skip to content

Commit

Permalink
strip markup from script wp abstracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldewyn committed Mar 1, 2024
1 parent aafb1dc commit 8e26dc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codepoints.net/views/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
'<span class="nchar">', $sc['count'], '</span>',
'</a>')?></p>
<?php if ($sc['abstract']): ?>
<blockquote cite="<?=q($sc['src'])?>" class="sc__abstract"><?=$sc['abstract']?></blockquote>
<blockquote cite="<?=q($sc['src'])?>" class="sc__abstract"><?=
strip_tags($sc['abstract'], '<p><b><strong class="selflink"><strong><em><i><var><sup><sub><tt><ul><ol><li><samp><small><hr><h2><h3><h4><h5><dfn><dl><dd><dt><u><abbr><big><blockquote><br><center><del><ins><kbd>')
?></blockquote>
<?php endif ?>
</details>
</li>
Expand Down

0 comments on commit 8e26dc3

Please sign in to comment.