Upgrade to 3.7.0
This commit is contained in:
3
kirby/src/Toolkit/Xml.php
Normal file → Executable file
3
kirby/src/Toolkit/Xml.php
Normal file → Executable file
@@ -421,8 +421,7 @@ class Xml
|
||||
return $value;
|
||||
}
|
||||
|
||||
// TODO: in 3.7.0 use ENT_NOQUOTES | ENT_XML1 instead
|
||||
$encoded = htmlentities($value, ENT_COMPAT);
|
||||
$encoded = htmlentities($value, ENT_NOQUOTES | ENT_XML1);
|
||||
if ($encoded === $value) {
|
||||
// no CDATA block needed
|
||||
return $value;
|
||||
|
Reference in New Issue
Block a user