allow html in plugin input
-
Hi. I am using a plugin called “Oxford Debates.”
I think this question might be general coding, though. In one of the plugin’s input fields I would like to add some html – really just some well-placed [br /] codes. (Brackets instead of <> so it will display here instead of execute.)
I have found a part of the plugin code for sanitizing inputs. I commented out the relevant sanitize_text_area but that did not help.
Any ideas?
THANK YOU!!
// Checks for input and sanitizes/saves if needed if( isset( $_POST[ 'titlepa-text' ] ) ) { update_post_meta( $post_id, 'titlepa-text', sanitize_text_field( $_POST[ 'titlepa-text' ] ) ); //update_post_meta( $post_id, 'textpa-text', sanitize_text_field( $_POST[ 'textpa-text' ] ) ); update_post_meta( $post_id, 'titlepb-text', sanitize_text_field( $_POST[ 'titlepb-text' ] ) ); //update_post_meta( $post_id, 'textpb-text', sanitize_text_field( $_POST[ 'textpb-text' ] ) ); update_post_meta( $post_id, 'duration-check', sanitize_text_field( $_POST[ 'duration-check' ] ) ); update_post_meta( $post_id, 'initduration-text', sanitize_text_field( $_POST[ 'initduration-text' ] ) ); update_post_meta( $post_id, 'endduration-text', sanitize_text_field( $_POST[ 'endduration-text' ] ) ); update_post_meta( $post_id, "usera", $_POST["usera"]); update_post_meta( $post_id, "userb", $_POST["userb"]); update_post_meta( $post_id, "votea", $_POST["votea"]); update_post_meta( $post_id, "voteb", $_POST["voteb"]); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘allow html in plugin input’ is closed to new replies.