/**
* Wraps given string in XML CDATA tag.
*
* @since 2.1.0
*
* @param string $str String to wrap in XML CDATA tag.
* @return string
*/
function wxr_cdata( $str ) { if ( !
seems_utf8( $str ) ) { $str =
utf8_encode( $str );
} // $str = ent2ncr(esc_html($str));
$str = '<![CDATA[' .
str_replace( ']]>', ']]]]><![CDATA[>',
$str ) . ']]>';
return $str;
} /**
* Returns the URL of the site.
*
* @since 2.5.0
*
* @return string Site URL.
*/