Custom Style / CSS > save data to database
-
Hi,
I am developing my own custom CSS function which I will use in my contactform, so users can change layout of form by adding custom css in a textarea field.
To add save data in database I use: sanitize_text_field
To display save data in textarea field in backend I use: esc_textareaMy question, the sanitize_text_field removes all line breaks (does not look nice in textarea field backend), can I use an alternative for entering save data in database?
This I use now:
register_setting( 'my_options_group', 'my_option_name', 'sanitize_text_field' );
Guido
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Style / CSS > save data to database’ is closed to new replies.