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