{"action":"created","issue":{"url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/17","labels_url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/17/comments","events_url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/17/events","html_url":"https://github.com/JayWood/content-warning-v3/issues/17","id":52194473,"number":17,"title":"Allow use of form elements in dialog message","user":{"login":"j-tosi","id":9698208,"avatar_url":"https://avatars.githubusercontent.com/u/9698208?v=3","gravatar_id":"","url":"https://api.github.com/users/j-tosi","html_url":"https://github.com/j-tosi","followers_url":"https://api.github.com/users/j-tosi/followers","following_url":"https://api.github.com/users/j-tosi/following{/other_user}","gists_url":"https://api.github.com/users/j-tosi/gists{/gist_id}","starred_url":"https://api.github.com/users/j-tosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-tosi/subscriptions","organizations_url":"https://api.github.com/users/j-tosi/orgs","repos_url":"https://api.github.com/users/j-tosi/repos","events_url":"https://api.github.com/users/j-tosi/events{/privacy}","received_events_url":"https://api.github.com/users/j-tosi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JayWood/content-warning-v3/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-17T02:31:56Z","updated_at":"2015-01-27T08:18:11Z","closed_at":null,"body":"I'm trying to create conditions that the user must accept before being able to get past the content warning dialog box. For this, I'm using form elements (checkboxes). However, after I insert the html in the dialog message text field in Wordpress admin, the checkbox elements are stripped out on the front end. For example:\r\n\r\n```html\r\n<form name=\"form1\" method=\"post\" action=\"\">\r\n\t<p>\r\n\t\t<label>\r\n\t\t\t<input type=\"checkbox\" name=\"disclaimer\" value=\"facts-circumstances\" id=\"disclaimer_0\">\r\n\t\t\tThe facts and circumstances of your case may differ from the matters in which results and testimonials have been provided.</label>\r\n\t\t<br>\r\n\t\t<label>\r\n\t\t\t<input type=\"checkbox\" name=\"disclaimer\" value=\"results-testimonials\" id=\"disclaimer_1\">\r\n\t\t\tAll results of cases handled by the firm are not provided and not all clients have given testimonials.</label>\r\n\t\t<br>\r\n\t\t<label>\r\n\t\t\t<input type=\"checkbox\" name=\"disclaimer\" value=\"experience-difference\" id=\"disclaimer_2\">\r\n\t\t\tThe results and testimonials provided are not necessarily representative of results obtained by the firm or of the experience of all clients or others with the firm. Every case is different, and each client's case must be evaluated and handled on its own merits.</label>\r\n\t</p>\r\n</form>\r\n```\r\n\r\nThe front-end output looks like this:\r\n\r\n```html\r\n<form name=\"form1\" method=\"post\" action=\"\">\r\n<p>\r\n\t\t<label></p>\r\n<p>\t\t\tThe facts and circumstances of your case may differ from the matters in which results and testimonials have been provided.</label><br />\r\n\t\t<br><br />\r\n\t\t<label></p>\r\n<p>\t\t\tAll results of cases handled by the firm are not provided and not all clients have given testimonials.</label><br />\r\n\t\t<br><br />\r\n\t\t<label></p>\r\n<p>\t\t\tThe results and testimonials provided are not necessarily representative of results obtained by the firm or of the experience of all clients or others with the firm. Every case is different, and each client's case must be evaluated and handled on its own merits.</label>\r\n\t</p>\r\n</form>\r\n```"},"comment":{"url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/comments/71607287","html_url":"https://github.com/JayWood/content-warning-v3/issues/17#issuecomment-71607287","issue_url":"https://api.github.com/repos/JayWood/content-warning-v3/issues/17","id":71607287,"user":{"login":"j-tosi","id":9698208,"avatar_url":"https://avatars.githubusercontent.com/u/9698208?v=3","gravatar_id":"","url":"https://api.github.com/users/j-tosi","html_url":"https://github.com/j-tosi","followers_url":"https://api.github.com/users/j-tosi/followers","following_url":"https://api.github.com/users/j-tosi/following{/other_user}","gists_url":"https://api.github.com/users/j-tosi/gists{/gist_id}","starred_url":"https://api.github.com/users/j-tosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-tosi/subscriptions","organizations_url":"https://api.github.com/users/j-tosi/orgs","repos_url":"https://api.github.com/users/j-tosi/repos","events_url":"https://api.github.com/users/j-tosi/events{/privacy}","received_events_url":"https://api.github.com/users/j-tosi/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T08:18:11Z","updated_at":"2015-01-27T08:18:11Z","body":"Thanks for this. Sorry for my newbiness, but I'm not sure what to do with the code in the link you provided. Does this overwrite something in the plugin?"}}