WordPress.org

Ready to get started?Download WordPress

Forums

problem with esc_textarea (2 posts)

  1. robin90
    Member
    Posted 2 years ago #

    I was validating data for textarea using esc_textarea but when extracting the value using get_option and trying to embed the value in the code it is adding some extra code like &gt,&lt so is there any way to filter this out or decode it.Actully i am giving image path using textarea so instead of displaying image it is displaying the path. when i remove esc_textarea in validation it works fine.Any help will be appreciated

  2. Chouby
    Member
    Posted 2 years ago #

    I am not sure that I well understood... So I may be wrong. It seems that you apply esc_textarea to text you stores in options. And I believe that esc_textarea must be applied just before outputting the text.

Topic Closed

This topic has been closed to new replies.

About this Topic