Skip to content

Commit

Permalink
fix: added missing conversion to HTML entities
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 15, 2023
1 parent 0d3e2ad commit 53134f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/Comments.php
Expand Up @@ -159,7 +159,7 @@ private function showShortComment(int $id, string $comment): string

$comment = '';
foreach ($words as $word) {
$comment .= $word . ' ';
$comment .= Strings::htmlentities($word . ' ');
if (15 === $numWords) {
$comment .= '<span class="comment-dots-' . $id . '">&hellip; </span>' .
'<a href="#" data-comment-id="' . $id . '" class="pmf-comments-show-more comment-show-more-' . $id .
Expand Down

0 comments on commit 53134f5

Please sign in to comment.