This function has been deprecated. Use format_for_editor() instead.

wp_htmledit_pre( string $output )

Formats text for the HTML editor.


Description

Unless $output is empty it will pass through htmlspecialchars before the ‘htmledit_pre’ filter is applied.

See also


Parameters

$output

(string) (Required) The text to be formatted.


Return

(string) Formatted text after filter applied.


Source

File: wp-includes/deprecated.php

function wp_htmledit_pre($output) {
	_deprecated_function( __FUNCTION__, 'WP-4.3.0', 'format_for_editor()' );

	if ( !empty($output) )
		$output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > &

	/**
	 * Filters the text before it is formatted for the HTML editor.
	 *
	 * @since WP-2.5.0
	 * @deprecated WP-4.3.0
	 *
	 * @param string $output The HTML-formatted text.
	 */
	return apply_filters( 'htmledit_pre', $output );
}


Changelog

Changelog
Version Description
WP-4.3.0 Use format_for_editor()
WP-2.5.0 Introduced. This function has been deprecated. Use format_for_editor() instead.