WPDev.one
Core Function
View Source on Trac ↗

wp_check_invalid_utf8()

wp_check_invalid_utf8( mixed $text, mixed $strip = false )

Checks for invalid UTF8 in a string.

Parameters 1 required

Name / Type Description
$text
string

The text which is to be checked.

Required
$strip
bool

Optional. Whether to attempt to strip out invalid UTF8. Default false.

Return Value

(string)
The checked text.

Function Information

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