wp-admin/includes/export.php:245Wraps given string in XML CDATA tag.
$strstring|nullstring function wxr_cdata( $str ) { $str = (string) $str; if ( ! wp_is_valid_utf8( $str ) ) { $str = utf8_encode( $str ); } // $str = ent2ncr(esc_html($str)); $str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>'; return $str; }Introduced in 2.1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$str retyped from string to string|null.verified against sourcesrc/wp-admin/includes/export.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.