Xml.php: Do not escape double quotes in $contents of Xml::element()
authorFomafix <fomafix@googlemail.com>
Wed, 24 Feb 2016 18:22:43 +0000 (18:22 +0000)
committerKrinkle <krinklemail@gmail.com>
Wed, 23 May 2018 20:03:54 +0000 (20:03 +0000)
commit37789ebf45abf838db838bb773f4458084fda09d
treeedb2f4b6f69e04a291e6d41516846a54d82b9702
parentb837f562107b858bd37966058b869a9ccd10fbf8
Xml.php: Do not escape double quotes in $contents of Xml::element()

There is no need to escape double quotes in content of XML.
Html::element() also does not escape double quotes in content.

ENT_NOQUOTES escapes '<', '>' and '&' but not "'" and '"'.
https://secure.php.net/manual/en/function.htmlspecialchars.php

Change-Id: I3b585c43e532cca1a8951d6c9e8b4825fc3b012d
includes/Xml.php
tests/phpunit/includes/XmlTest.php
tests/phpunit/includes/api/format/ApiFormatXmlTest.php