2020-05-01 / 4672阅 / 悠然
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.
Top ↑
(string)
(Required)
The text to be formatted.
(string)
(Optional)
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.