[wp-trac] [WordPress Trac] #19998: Feeds can contain characters that are not valid XML

WordPress Trac noreply at wordpress.org
Mon Jul 3 08:04:08 UTC 2017


#19998: Feeds can contain characters that are not valid XML
----------------------------------------+------------------------------
 Reporter:  westi                       |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Feeds                       |     Version:  3.3.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by mdgl):

 Replying to [comment:12 marco.marsala]:
 > You can simply use PHP DomDocument->saveXml() to escape XML
 Only if you have a DOM tree to output!  WordPress doesn't (yet) work like
 that.  XML output is just assembled with a series of "print" statements.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19998#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list