WPDev.one
Core Function
View Source on Trac ↗

format_to_edit()

format_to_edit( mixed $content, mixed $rich_text = false )

Acts on text which is about to be edited.

Parameters 2 required

Name / Type Description
$content
string

The text about to be edited.

Required
bool

$rich_text Optional. Whether `$content` should be considered rich text, in which case it would not be passed through esc_textarea(). Default false.

Required

Return Value

(string)
The text after the filter (and possibly htmlspecialchars()) has been run.

Function Information

Since Version
0.71
Source File
wp-includes/formatting.php
Advertisement