[wp-hackers] Validate String

Chip Bennett chip at chipbennett.net
Wed Jan 19 00:03:39 UTC 2011


Perhaps you just want to use
wp_filter_nohtml_kses()<http://codex.wordpress.org/Function_Reference/wp_filter_nohtml_kses>
?

On Tue, Jan 18, 2011 at 5:49 PM, WP Customizer <wpcustomizer at gmail.com>wrote:

> yea i already read that, talks about other data types but not just a plain
> text field.
>
> On Tue, Jan 18, 2011 at 2:09 PM, Aaron Jorbin <aaron at jorb.in> wrote:
>
> > http://codex.wordpress.org/Data_Validation
> >
> > One additional function is sanitize_text_field
> >
> > http://aaron.jorb.in
> > twitter: twitter.com/aaronjorbin
> >
> >
> > On Tue, Jan 18, 2011 at 4:56 PM, WP Customizer <wpcustomizer at gmail.com
> > >wrote:
> >
> > > I am wondering what is the correct method to validate a string before
> > > saving
> > > it as a plugin option, its just a random string i want the user to
> input,
> > a
> > > username for a third party service I am going to connect to.
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list