WPDev.one
Core Function
View Source on Trac ↗

normalize_whitespace()

normalize_whitespace( mixed $str )

Normalizes EOL characters and strips duplicate whitespace.

Parameters 1 required

Name / Type Description
$str
string

The string to normalize.

Required

Return Value

(string)
The normalized string.

Function Information

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