WordPress.org

Support

Support » Miscellaneous » Restoring data – echoing into textarea value, strips <script> tags

Restoring data – echoing into textarea value, strips <script> tags

  • Hi,

    This is a weird one, someting I’ve never come across and wondered if anyone knew the solution.

    In the admin backend of a theme I’m working on, I decided to move the ad management to the theme options, letting a user paste in a block of code for one ad, let’s say a google adsense block. It goes in fine, saves fine, and in phpmyadmin I can see it is saved properly in the same format as it was pasted in with.

    The problem arises when the options save and the page refreshes. I use a php echo to put those saved blocks back into their respective textareas. For some odd reason the script tags are being stripped – is there a solution to this? Can I echo the properly saved info with it being messed with?

    Hope someone knows! Cheers,
    Richard

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Restoring data – echoing into textarea value, strips <script> tags’ is closed to new replies.