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.


Top ↑

Return Return

(string|array) Formatted data.


Top ↑

Source Source

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


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.