public static function get_pre_blog_card_template( $url ) {
		if ( ! $url ) {
			return;
		}

		if ( 0 === strpos( $url, home_url() ) ) {
			$target = '_self';
		} else {
			$target = '_blank';
		}

		return static::_strip_newlines(
			sprintf(
				'<div class="js-wp-oembed-blog-card">
					<a class="js-wp-oembed-blog-card__link" href="%1$s" target="%2$s">%1$s</a>
				</div>',
				esc_url( $url ),
				esc_attr( $target )
			)
		);
	}
public static function get_pre_blog_card_template( $url ) {
		if ( ! $url ) {
			return;
		}

		if ( 0 === strpos( $url, home_url() ) ) {
			$target = '_self';
		} else {
			$target = '_blank';
		}

		return static::_strip_newlines(
			sprintf(
				'<div class="js-wp-oembed-blog-card">
					<a class="js-wp-oembed-blog-card__link" href="%1$s" target="%2$s">%1$s</a>
				</div>',
				esc_url( $url ),
				esc_attr( $target )
			)
		);
	}
public static function get_pre_blog_card_template ( $ url ) { if ( ! $ url ) { return ; } if ( 0 === strpos ( $ url , home_url ( ) ) ) { $ target = '_self' ; } else { $ target = '_blank' ; } return static :: _strip_newlines ( sprintf ( '<div class="js-wp-oembed-blog-card">
					<a class="js-wp-oembed-blog-card__link" href="%1$s" target="%2$s">%1$s</a>
				</div>' , esc_url ( $ url ) , esc_attr ( $ target ) ) ) ; }
Render pre blog card template

@param string $url
@return string
Render pre blog card template