Title: Theme Options Data Sanitization for Ad Code
Last modified: August 20, 2016

---

# Theme Options Data Sanitization for Ad Code

 *  [pjpainter](https://wordpress.org/support/users/pjpainter/)
 * (@pjpainter)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-options-data-sanitization-for-ad-code/)
 * Hi all,
 * I’m making a new theme, and adding a box to the theme options page to insert 
   code containing ad network ads (like adsense) and affiliate ads.
 * Does anyone know the best way to sanitize the javascript and/or html on both 
   input and output for this kind of thing?

The topic ‘Theme Options Data Sanitization for Ad Code’ is closed to new replies.

## Tags

 * [sanitization](https://wordpress.org/support/topic-tag/sanitization/)
 * [sanitize](https://wordpress.org/support/topic-tag/sanitize/)

 * 0 replies
 * 1 participant
 * Last reply from: [pjpainter](https://wordpress.org/support/users/pjpainter/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/theme-options-data-sanitization-for-ad-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
