[wp-hackers] esc_textarea() back to normal text?
chip at chipbennett.net
Sun Jun 19 23:11:24 UTC 2011
I think, generally, the esc_*() functions are intended for *output* of data,
rather than for *input*. For *input* of data, you might be better-served
using the appropriate KSES filter, e.g. wp_filter_kses() for HTML, or
wp_filter_nohtml_kses() for normal text.
(Of course, if I'm wrong, I'm sure I'll be set straight shortly! :) )
On Sun, Jun 19, 2011 at 6:08 PM, Christopher Ross <cross at thisismyurl.com>wrote:
> I wrote some text to the database using
> esc_textarea(update_option(1,$test)) and when I fetch it using get_option(1)
> it reads <hello> (as expected) but what's the function to convert it
> back to <hello> for display?
> Christopher Ross (cross at thisismyurl.com)
> WordPress Consulting, Design & Programming
> Toronto - (416) 900-3731
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers