|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-21 10:33 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
Description: ------------ The function addAttribute convert html entities like "é" => "&eacute;" Reproduce code: --------------- $simpleXml = simplexml_load_string("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?><!DOCTYPE dtdsite SYSTEM \"http://www.monsite.dev/dtd.dtd\"><xml></xml>", null, LIBXML_DTDLOAD); $config = $simpleXml->addChild("config", "é"); $config->addAttribute("langue", "é"); Expected result: ---------------- <xml> <config langue="é">é</config> </xml> Actual result: -------------- <xml> <config langue="&eacute;">é</config> </xml>