wpseek.com
				Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
			format_to_edit › WordPress Function
Seit0.71
Veraltetn/v
› format_to_edit ( $content, $rich_text = false )
| Parameter: (2) | 
 | 
| Gibt zurück: | 
 | 
| Definiert in: | 
 | 
| Codex: | |
| Changelog: | 
 | 
Acts on text which is about to be edited.
The $content is run through esc_textarea(), which uses htmlspecialchars() to convert special characters to HTML entities. If$richedit is set to true,
it is simply a holder for the {@see 'format_to_edit'} filter.Ähnliche Funktionen: format_for_editor, format_to_post, load_image_to_edit, get_term_to_edit, get_post_to_edit
	Quellcode
function format_to_edit( $content, $rich_text = false ) {
	/**
	 * Filters the text to be formatted for editing.
	 *
	 * @since 1.2.0
	 *
	 * @param string $content The text, prior to formatting for editing.
	 */
	$content = apply_filters( 'format_to_edit', $content );
	if ( ! $rich_text ) {
		$content = esc_textarea( $content );
	}
	return $content;
}