Force UTF-8 encoding in htmlspecialchars
This commit is contained in:
1 parent
69b0fb9eaf
commit
5ce5a488d1
2 files changed
+3
-3
No files matched your search
@@ -47,7 +47,7 @@ class XLSX implements EscaperInterface
|
||||
$escapedString = $this->escapeControlCharacters($string);
|
||||
// @NOTE: Using ENT_QUOTES as XML entities ('<', '>', '&') as well as
|
||||
// single/double quotes (for XML attributes) need to be encoded.
|
||||
$escapedString = htmlspecialchars($escapedString, ENT_QUOTES);
|
||||
$escapedString = htmlspecialchars($escapedString, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
return $escapedString;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user