[wp-trac] [WordPress Trac] #25872: WXR export tool generates XML which is not well-formed

WordPress Trac noreply at wordpress.org
Thu Oct 2 13:49:15 UTC 2014


#25872: WXR export tool generates XML which is not well-formed
--------------------------+------------------------------
 Reporter:  tomdxw        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Export        |     Version:  3.7.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tomdxw):

 I'd just iterate through the codepoints in wxr_cdata() and replace
 disallowed codepoints with U+FFFD (the replacement character). I'm not
 sure of the best way to iterate through codepoints in PHP - but UTF-8
 parsers aren't hard to write if there isn't already a function that does
 it.

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


More information about the wp-trac mailing list