AbstractSchema::prepare_html_response( string|array $response )
Prepares HTML based content, such as post titles and content, for the API response.
Description Description
The wptexturize, convert_chars, and trim functions are also used in the the_title
filter. The function wp_kses_post removes disallowed HTML tags.
Parameters Parameters
- $response
-
(Required) Data to format.
Return Return
(string|array) Formatted data.
Source Source
File: woocommerce/packages/woocommerce-blocks/src/RestApi/StoreApi/Schemas/AbstractSchema.php