Browse Source

Strip_tag

master
Fred Tempez 4 months ago
parent
commit
0730ee36d0
  1. 2
      module/blog/blog.php
  2. 2
      module/blog/view/index/index.php

2
module/blog/blog.php

@ -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';

2
module/blog/view/index/index.php

@ -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>

Loading…
Cancel
Save