wp_htmledit_pre

The timeline below displays how wordpress function wp_htmledit_pre has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * {@see 'htmledit_pre'} filter is applied.
 *
 * @since 2.5.0
 * @deprecated 4.3.0 Use format_for_editor()
 * @see format_for_editor()
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
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);
}

WordPress Version: 4.6

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * {@see 'htmledit_pre'} filter is applied.
 *
 * @since 2.5.0
 * @deprecated 4.3.0 Use format_for_editor()
 * @see format_for_editor()
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
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);
}

WordPress Version: 4.4

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * 'htmledit_pre' filter is applied.
 *
 * @since 2.5.0
 * @deprecated 4.3.0 Use format_for_editor()
 * @see format_for_editor()
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
function wp_htmledit_pre($output)
{
    _deprecated_function(__FUNCTION__, '4.3', 'format_for_editor()');
    if (!empty($output)) {
        $output = htmlspecialchars($output, ENT_NOQUOTES, get_option('blog_charset'));
    }
    // convert only < > &
    /**
     * Filter 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);
}

WordPress Version: 4.3

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * 'htmledit_pre' filter is applied.
 *
 * @since 2.5.0
 * @deprecated 4.3.0
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
function wp_htmledit_pre($output)
{
    _deprecated_function(__FUNCTION__, '4.3', 'format_for_editor()');
    if (!empty($output)) {
        $output = htmlspecialchars($output, ENT_NOQUOTES, get_option('blog_charset'));
    }
    // convert only < > &
    /**
     * Filter 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);
}

WordPress Version: 3.8

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * 'htmledit_pre' filter is applied.
 *
 * @since 2.5.0
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
function wp_htmledit_pre($output)
{
    if (!empty($output)) {
        $output = htmlspecialchars($output, ENT_NOQUOTES, get_option('blog_charset'));
    }
    // convert only < > &
    /**
     * Filter the text before it is formatted for the HTML editor.
     *
     * @since 2.5.0
     *
     * @param string $output The HTML-formatted text.
     */
    return apply_filters('htmledit_pre', $output);
}

WordPress Version: 3.7

/**
 * Formats text for the HTML editor.
 *
 * Unless $output is empty it will pass through htmlspecialchars before the
 * 'htmledit_pre' filter is applied.
 *
 * @since 2.5.0
 *
 * @param string $output The text to be formatted.
 * @return string Formatted text after filter applied.
 */
function wp_htmledit_pre($output)
{
    if (!empty($output)) {
        $output = htmlspecialchars($output, ENT_NOQUOTES, get_option('blog_charset'));
    }
    // convert only < > &
    return apply_filters('htmledit_pre', $output);
}