Skip to content

Commit

Permalink
[5.2] mod articles (#44475)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman authored Nov 27, 2024
1 parent 7ec3164 commit e9296a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mod_articles/src/Helper/ArticlesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ public function getArticles(Registry $params, SiteApplication $app)

// Remove any images belongs to the text
if (!$params->get('image')) {
$item->displayIntrotext = preg_replace('/<img[^>]*>/', '', $item->displayIntrotext);
// Remove any images and empty links from the intro text
$item->displayIntrotext = preg_replace(['/\\<img[^>]*>/', '/<a[^>]*><\\/a>/'], '', $item->displayIntrotext);
}

if ($introtext_limit != 0) {
Expand Down

0 comments on commit e9296a3

Please sign in to comment.