WPDev.one
Core Function
View Source on Trac ↗

wptexturize()

wptexturize( mixed $text, mixed $reset = false )

Replaces common plain text characters with formatted entities.

Parameters 1 required

Name / Type Description
$text
string

The text to be formatted.

Required
$reset
bool

Set to true for unit testing. Translated patterns will reset.

Return Value

(string)
The string replaced with HTML entities.

Function Information

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