Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

format_for_editor()

3 tags 1 category

format_for_editor() — 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 {

Inputs: $text (string): The text to be formatted. $default_editor (string): The default editor for the current user. It is usually either ‘html’ or ‘tinymce’.

Returns string: The formatted text after filter is applied.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…