

/**
 * Cargoflux tracking block (CAR-476): output the Custom HTML block with id="cfx-tracking"
 * exactly as stored. WordPress' content filters (texturize/convert_chars) otherwise turn
 * "&&" in the inline script into "&#038;&#038;" and break it. Other blocks are not affected.
 */
add_filter( 'render_block', function ( $content, $block ) {
    if ( isset( $block['blockName'] ) && $block['blockName'] === 'core/html' && strpos( $content, 'id="cfx-tracking"' ) !== false ) {
        $GLOBALS['cfx_raw_blocks'][] = $content;
        return '<!--cfx-raw-' . ( count( $GLOBALS['cfx_raw_blocks'] ) - 1 ) . '-->';
    }
    return $content;
}, 10, 2 );

add_filter( 'the_content', function ( $content ) {
    if ( empty( $GLOBALS['cfx_raw_blocks'] ) ) {
        return $content;
    }
    return preg_replace_callback( '/(?:<p>)?<!--cfx-raw-(\d+)-->(?:<\/p>)?/', function ( $m ) {
        return isset( $GLOBALS['cfx_raw_blocks'][ (int) $m[1] ] ) ? $GLOBALS['cfx_raw_blocks'][ (int) $m[1] ] : '';
    }, $content );
}, 999 );
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//cargoflux.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://cargoflux.com/page-sitemap.xml</loc>
		<lastmod>2026-10-12T09:07:17+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->