Customize the structure of WP Discourse templates

Hello everyone. Please tell me how I can wrap the content of a forum post in the
<noindex>{content}</noindex> tag
I tried to do this.

function wpdc_custom_publish_format_html( $input, $post_id ) {
    ob_start();
    ?>
    <noindex>
    <small>
        <?php echo esc_html( self::Vget_text_options( 'published-at-text' ) ); ?>
        {blogurl}
    </small>
    <br>
    {excerpt}
    </noindex>
    <?php
    $output = ob_get_clean();
    return $output;
}
add_filter( 'discourse_publish_format_html', 'wpdc_custom_publish_format_html', 10, 2 );

This caused a critical error
Please help to solve this problem