_sanitize_text_fields
- %1$s is private and should not be used in themes or plugins directly.
_sanitize_text_fields ( $str, $keep_newlines = false )
Access:Parameters:- (string) str String to sanitize.
- (bool) keep_newlines Optional. Whether to keep newlines. Default: false.
Returns:- (string) Sanitized string.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Internal helper function to sanitize a string from user input or from the database.