We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b0bef commit 077175eCopy full SHA for 077175e
src/PhpWord/Escaper/Xml.php
@@ -27,6 +27,6 @@ class Xml extends AbstractEscaper
27
protected function escapeSingleValue($input)
28
{
29
// todo: omit encoding parameter after migration onto PHP 5.4
30
- return htmlspecialchars($input, ENT_QUOTES, 'UTF-8');
+ return (!is_null($input)) ? htmlspecialchars($input, ENT_QUOTES, 'UTF-8') : null;
31
}
32
0 commit comments