stripslashes(wp_filter_post_kses(addslashes($_POST['sidebar_code'])));
but you should know that the kses filter is not 100% safe.
stripslashes(wp_filter_post_kses(addslashes($_POST['sidebar_code'])));
but you should know that the kses filter is not 100% safe.