Sanitize content for allowed HTML tags for post content.

Post content refers to the page contents of the ‘post’ type and not $_POST data from forms.

Signature

wp_kses_post( $data )
data
 (string) Post content to filter

Return

(string) Filtered post content with allowed HTML tags and attributes intact.

Source

function wp_kses_post($data) {
	return wp_kses( $data , 'post' );
}
WP Trac GitHub

Link here