WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

AbstractSchema::prepare_html_response() protected WC 1.0

Prepares HTML based content, such as post titles and content, for the API response.

{} It's a method of the class: AbstractSchema{}

No Hooks.

Return

String|Array. Formatted data.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_html_response( $response );
$response(string|array) (required)
Data to format.

Code of AbstractSchema::prepare_html_response() WC 5.6.0

protected function prepare_html_response( $response ) {
	return $this->extend->get_formatter( 'html' )->format( $response );
}