wp_check_invalid_utf8
wp_check_invalid_utf8 ( $text, $strip = false )
Parameters:- (string) text The text which is to be checked.
- (bool) strip Optional. Whether to attempt to strip out invalid UTF8. Default false.
Returns:- (string) The checked text.
Defined at: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Checks for invalid UTF8 in a string.