In my plugin I want administrators to be able to set the from name and email address in a single form field.
I anticipate the field content to be Name <[email protected]>
However both sanitize_text_field()
and sanitize_email()
do their jobs and remove critical parts of the data.
Is there better way to do it rather than wp_kses()
?