Skip to content

Commit

Permalink
fix: added missing cleanup for news content
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 5, 2024
1 parent 3ad85b6 commit c94b3de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpmyfaq/news.php
Expand Up @@ -24,6 +24,7 @@
use phpMyFAQ\Entity\CommentType;
use phpMyFAQ\Filter;
use phpMyFAQ\Glossary;
use phpMyFAQ\Helper\FaqHelper;
use phpMyFAQ\News;
use phpMyFAQ\Session\Token;
use phpMyFAQ\Strings;
Expand Down Expand Up @@ -70,6 +71,9 @@
$newsContent = $oGlossary->insertItemsIntoContent($newsContent ?? '');
$newsHeader = $oGlossary->insertItemsIntoContent($newsHeader ?? '');

$helper = new FaqHelper($faqConfig);
$newsContent = $helper->cleanUpContent($newsContent);

// Add an information link if existing
if (strlen((string) $news['link']) > 0) {
$newsContent .= sprintf(
Expand Down

0 comments on commit c94b3de

Please sign in to comment.