Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix: added missing conversion to HTML entities
  • Loading branch information
thorsten committed Feb 17, 2023
1 parent e018823 commit bbc5d4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpmyfaq/send2friend.php
Expand Up @@ -65,7 +65,7 @@
$template->parse(
'mainPageContent',
[
'lang' => $faqLanguage,
'lang' => Strings::htmlentities($faqLanguage),
'msgSend2Friend' => $PMF_LANG['msgSend2Friend'],
'msgS2FReferrer' => 'link',
'msgS2FName' => $PMF_LANG['msgS2FName'],
Expand Down
3 changes: 1 addition & 2 deletions phpmyfaq/src/phpMyFAQ/Export/Html5.php
Expand Up @@ -22,7 +22,6 @@
use phpMyFAQ\Date;
use phpMyFAQ\Export;
use phpMyFAQ\Faq;
use phpMyFAQ\Init;
use phpMyFAQ\Strings;
use XMLWriter;

Expand Down Expand Up @@ -108,7 +107,7 @@ public function generate(int $categoryId = 0, bool $downwards = true, string $la

$this->xml->startElement('h2');
$this->xml->writeAttribute('id', "entry-" . $data['solution_id']);
$this->xml->text(strip_tags($data['topic']));
$this->xml->text(Strings::htmlentities($data['topic']));
$this->xml->endElement();
$this->xml->startElement('p');
$this->xml->writeCdata(html_entity_decode($data['content'], ENT_HTML5, 'UTF-8'));
Expand Down

0 comments on commit bbc5d4a

Please sign in to comment.