note 86664 added to function.xml-parse-into-struct

From: Date: Tue, 28 Oct 2008 23:19:23 +0000
Subject: note 86664 added to function.xml-parse-into-struct
Groups: php.notes 
Request: Send a blank email to php-notes+get-145910@lists.php.net to get a copy of this message
The parser has a bug : when you parse <a foo="<bar> ... </bar>"> the parser try to parse the argument of foo. To solve this replace by urlencode $r = xml_parse_into_struct($parser, preg_replace_callback('/"([^"]*)"/', create_function('$match', 'return(\'"\' . urlencode($match[1]) . \'"\');'), $xml_string ), $vals, $index); The apply urldecode when it's needed ---- Server IP: 195.221.21.36 Probable Submitter: 88.173.248.111 ---- Manual Page -- http://www.php.net/manual/en/function.xml-parse-into-struct.php Edit -- https://master.php.net/note/edit/86664 Del: integrated -- https://master.php.net/note/delete/86664/integrated Del: useless -- https://master.php.net/note/delete/86664/useless Del: bad code -- https://master.php.net/note/delete/86664/bad+code Del: spam -- https://master.php.net/note/delete/86664/spam Del: non-english -- https://master.php.net/note/delete/86664/non-english Del: in docs -- https://master.php.net/note/delete/86664/in+docs Del: other reasons-- https://master.php.net/note/delete/86664 Reject -- https://master.php.net/note/reject/86664 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145910) next »