WordPress at a glance
function is not described

_autop_newline_preservation_helper() WP 3.1.0

Newline preservation help function for wpautop

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String.

Usage

_autop_newline_preservation_helper( $matches );
$matches(array) (required)
preg_replace_callback matches array

Changelog

Since 3.1.0 Introduced.

Code of _autop_newline_preservation_helper() WP 5.7.2

<?php
function _autop_newline_preservation_helper( $matches ) {
	return str_replace( "\n", '<WPPreserveNewline />', $matches[0] );
}