Issue #2873682 by lolandese: XML output: Allow to set how to make strings XML “safe” by using htmlspecialchars or CDATA