1.I need help in correctly or safely outputting user entered Adsense/ads code from options panel to the front end in themes.
Any help will be much appreciated.
Thanks for the quick reply but that is safe way of entering data in variables, it will stripout the adsense code and make it un usable
This is what is outputted when using esc_js
it’s changing line breaks to /n so remove them all beforehand, see if that fixes it…
if esc_js doesn’t work then look at esc_attr, have a look at all the sanitization classes in WP.
Escaping will not work Gareth, I want to know how authors who have recently approved themes circumvent the problem.
Thank you for helping.