WordPress.org

Make WordPress Core

Ticket #9633: 9633.2.patch

File 9633.2.patch, 524 bytes (added by hakre, 5 years ago)

CDATA to the rescue

  • wp-admin/includes/export.php

     
    302302<?php foreach( $postmeta as $meta ) { ?> 
    303303<wp:postmeta> 
    304304<wp:meta_key><?php echo $meta->meta_key; ?></wp:meta_key> 
    305 <wp:meta_value><?Php echo $meta->meta_value; ?></wp:meta_value> 
     305<wp:meta_value><?php echo wxr_cdata($meta->meta_value); ?></wp:meta_value> 
    306306</wp:postmeta> 
    307307<?php } ?> 
    308308<?php } ?>