AbstractSchema::prepare_html_response() – Prepares HTML based content, such as post titles and content, for the API response.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string|array = AbstractSchema::prepare_html_response( $response );

Parameters

$response
( string|array ) required – Data to format.

Returns

string|array Formatted data.

Source

File name: woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractSchema.php
Lines:

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

 View on GitHub View on Trac