wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_htmledit_pre › WordPress Function

Da2.5.0
Deprecato4.3.0
wp_htmledit_pre ( $output )
Parametri:
  • (string) $output The text to be formatted.
    Richiesto:
Vedi:
Ritorna:
  • (string) Formatted text after filter applied.
Definito a:
Codex:

Formats text for the HTML editor.

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


Sorgenti

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 );
}