Strip_tag

This commit is contained in:
Fred Tempez 2022-02-15 10:58:08 +01:00
parent 050386826d
commit 0730ee36d0
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
class blog extends common {
const VERSION = '5.1';
const VERSION = '5.2';
const REALNAME = 'Blog';
const DELETE = true;
const UPDATE = '0.0';

View File

@ -41,7 +41,7 @@
: utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>
</div>
<p class="blogContent">
<?php echo helper::subword(strip_tags($article['content']), 0, 400); ?>...
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, 400); ?>...
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">Lire la suite</a>
</p>
</div>