Fix for #14957 and probably a lot of other issues
Convert special characters for a valid use in xml documents
This commit is contained in:
parent
fe2e41527a
commit
5510f1feef
@ -156,6 +156,7 @@ class Odf
|
||||
*/
|
||||
public function convertVarToOdf($value, $encode = true, $charset = 'ISO-8859')
|
||||
{
|
||||
$value = $encode ? htmlspecialchars($value) : $value;
|
||||
$value = ($charset == 'ISO-8859') ? utf8_encode($value) : $value;
|
||||
$convertedValue = $value;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user