WPDev.one
Core Function
View Source on Trac ↗

wp_specialchars()

wp_specialchars( mixed $text, mixed $quote_style = ENT_NOQUOTES, mixed $charset = false, mixed $double_encode = false )

Legacy escaping for HTML blocks.

Parameters 2 required

Name / Type Description
$text
string

Text to escape.

Required
$quote_style
string

Unused.

(false

| string) $charset Unused.

Required
$double_encode
false

Whether to double encode. Unused.

Return Value

(string)
Escaped `$text`.

Function Information

Source File
wp-includes/deprecated.php
Advertisement