sanitizing a text field form but keep line breaks
-
I have been using sanitize_text_field() to sanitize a text field in a form. I need to keep the line breaks in the form so I can use nl2br to place each line break on a new line when displaying back the data.
Any ideas on how to safely sanitize and yet preserve line breaks?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘sanitizing a text field form but keep line breaks’ is closed to new replies.