Cleansing HTML from Form Submissions

By: Justin Reed | Asked: 04/26/2023
ForumsCategory: General questionsCleansing HTML from Form Submissions
Justin Reed asked 2 years ago
Is there a way to cleanse HTML that is submitted through text fields?
1 Answers
Victor Font answered 2 years ago
Yes. Use the WordPress sanitize_text_field function in Formidable's frm_pre_create_entry hook See: https://developer.wordpress.org/reference/functions/sanitize_text_field/ and https://formidableforms.com/knowledgebase/frm_pre_create_entry/

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right