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?