WordPress.org

Make WordPress Core

Ticket #14584: 14584.patch

File 14584.patch, 536 bytes (added by ianmjones, 5 years ago)

Refreshed for 4.6, replaced commented out red-herring code with explanation of why encoded html entities are in CDATA.

  • src/wp-admin/includes/export.php

     
    149149                if ( ! seems_utf8( $str ) ) {
    150150                        $str = utf8_encode( $str );
    151151                }
    152                 // $str = ent2ncr(esc_html($str));
     152
     153                // Raw (UTF8) string used as per database entry, which may include html encoded characters.
    153154                $str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';
    154155
    155156                return $str;