_autop_newline_preservation_helper() – Newline preservation help function for wpautop
You appear to be a bot. Output may be restricted
Description
Newline preservation help function for wpautop().
Usage
$string = _autop_newline_preservation_helper( $matches );
Parameters
- $matches
- ( array ) required – preg_replace_callback matches array
Returns
string
Source
File name: wordpress/wp-includes/formatting.php
Lines:
1 to 3 of 3
function _autop_newline_preservation_helper( $matches ) { return str_replace( "\n", '<WPPreserveNewline />', $matches[0] ); }