Skip to content

Commit a08bf0a

Browse files
committed
[itens]: fix content strip
1 parent f89b3fe commit a08bf0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
<?php if (!empty($item['content']) && strlen($item['content']) >= 30): ?>
9393
<div class="mt-2 small content">
94-
<?= strip_tags(substr($item['content'], 0, 300)) ?>...
94+
<?= substr(strip_tags($item['content']), 0, 300) ?>...
9595
</div>
9696
<?php endif; ?>
9797
</div>

0 commit comments

Comments
 (0)