WordPress at a glance
function is not described

wp_htmledit_pre() WP 2.5.0

Deprecated from version 4.3.0. It is no longer supported and can be removed in future releases. Use format_for_editor() instead.

Formats text for the HTML editor.

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

Hooks from the function
Return

String. Formatted text after filter applied.

Usage

wp_htmledit_pre( $output );
$output(string) (required)
The text to be formatted.

Notes

  • See: format_for_editor()

Changelog

Since 2.5.0 Introduced.
Deprecated Since 4.3.0 Use format_for_editor()

Code of wp_htmledit_pre() WP 5.7

<?php
function wp_htmledit_pre($output) {
	_deprecated_function( __FUNCTION__, '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 2.5.0
	 * @deprecated 4.3.0
	 *
	 * @param string $output The HTML-formatted text.
	 */
	return apply_filters( 'htmledit_pre', $output );
}