format_for_editor
format_for_editor ( $text, $default_editor = null )
Parameters:- (string) text The text to be formatted.
- (string) default_editor The default editor for the current user. It is usually either 'html' or 'tinymce'.
See:Returns:- (string) The formatted text after filter is applied.
Defined at: - Introduced in WordPress: 4.3.0
- Deprecated in WordPress: —
Description
Formats text for the editor.Generally the browsers treat everything inside a textarea as text, but
it is still a good idea to HTML entity encode `<`, `>` and `&` in the content.
The filter {@see 'format_for_editor'} is applied here. If `$text` is empty the
filter will be applied to an empty string.