Escaping (single) quotes when using wp_insert_post
-
Hi,
I save my form submission in the database using wp_insert_post() but I’m not fully certain whether this function also sanitizes (single) quotes or not. Don’t want to mess up my database.
It uses sanitize_post_field() for sanitizing and this filter uses esc_js() for escaping quotes… for use in JS.
But this has nothing to do with escaping it for the databse itself… am I right?
Guido
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Escaping (single) quotes when using wp_insert_post’ is closed to new replies.