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:
Rüdiger Hahn 2020-10-09 11:13:11 +02:00 committed by GitHub
parent c7784076c5
commit 3b7b4312cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,7 @@ class Odf
//}
}
$value = $encode ? htmlspecialchars($value) : $value;
$value = ($charset == 'ISO-8859') ? utf8_encode($value) : $value;
// Check if the value includes html tags