Ticket #15203: wordpress_export_cdata.patch
| File wordpress_export_cdata.patch, 459 bytes (added by , 16 years ago) |
|---|
-
wp-admin/includes/export.php
diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index a9e8f22..cd3a9d4 100644
a b function export_wp( $args = array() ) { 138 138 $str = utf8_encode( $str ); 139 139 140 140 // $str = ent2ncr(esc_html($str)); 141 $str = str_replace(']]>', ']]]]><![CDATA[>', $str); 141 142 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '') . "]]>"; 142 143 143 144 return $str;