-1 ) { let peeParts = pee.split( '
' + tinkle.replace( /^(?:\s+|\s+)$/g, '' ) + '
\s*<\/p>/gmi, '' ); // under certain strange conditions it could create a P of entirely whitespace. pee = pee.replace( /
([^<]+)<\/(div|address|form)>/gmi, '
$1
\s*(?' + allblocks + '[^>]*>)\s*
(
]*)>/gmi, '' ); pee = pee.replace( /<\/blockquote><\/p>/gmi, '' ); pee = pee.replace( new RegExp( '\s*(?' + allblocks + '[^>]*>)', 'gmi' ), '$1' ); pee = pee.replace( new RegExp( '(?' + allblocks + '[^>]*>)\s*', 'gmi' ), '$1' ); if ( br ) { pee = pee.replace( /<(script|style)(?:.|\n)*?<\/\\1>/gmi, _autopNewlinePreservationHelper ); // /s modifier from php PCRE regexp replaced with (?:.|\n). pee = pee.replace( /()?((?=(\s*))\2)\n/gmi, '\n' ); // optionally make line breaks. pee = pee.replace( '', '\n' ); } pee = pee.replace( new RegExp( '(?' + allblocks + '[^>]*>)\s*', 'gmi' ), '$1' ); pee = pee.replace( /(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/gmi, '$1' ); pee = pee.replace( /\n<\/p>$/gmi, '' ); /* esline-enable */ if ( Object.keys( preTags ).length ) { pee = pee.replace( new RegExp( Object.keys( preTags ).join( '|' ), 'gi' ), function( matched ) { return preTags[matched]; } ); } return pee; }, }; wpf.init();
' ); pee = pee.replace( /<\/blockquote><\/p>/gmi, '
\s*(?' + allblocks + '[^>]*>)', 'gmi' ), '$1' ); pee = pee.replace( new RegExp( '(?' + allblocks + '[^>]*>)\s*