Skip to content

Commit

Permalink
htmlspecialchars seems to be better here (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed May 16, 2024
1 parent 6f20944 commit 39e682d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ function removeIfFirstSlash(&$text) {
};

function escapeHtml($html) {
return htmlentities($html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
return htmlspecialchars($html);
}

function getGuildNameById($id)
Expand Down

0 comments on commit 39e682d

Please sign in to comment.