2020-05-01 / 4290阅 / 悠然
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 ‘format_for_editor’ is applied here. If $text is empty the filter will be applied to an empty string.
The text to be formatted.
The default editor for the current user. It is usually either 'html' or 'tinymce'.
Default value: null
(string) The formatted text after filter is applied.