Title: Using PHP variables with HTML
Last modified: August 19, 2016

---

# Using PHP variables with HTML

 *  Resolved [Jack Reichert](https://wordpress.org/support/users/jackreichert/)
 * (@jackreichert)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/using-php-variables-with-html/)
 * Hi,
 * I’ve set up an options page for my theme in the admin area. On this page I would
   like to offer the user to save code in a textarea input form. I will then insert
   that code into a post.
 * I’ve set up the form, no frills, standard, but when I save HTML the form seems
   to be saving it with extra backslashes before each quote mark and hence the code
   is not printing properly in the front end…
 * Any ideas what may be causing this? Do php variables automatically do this? Is
   there a wordaround?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jack Reichert](https://wordpress.org/support/users/jackreichert/)
 * (@jackreichert)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/using-php-variables-with-html/#post-1334928)
 * The answer was to use stripslashes with the echo output…
 * [http://php.net/manual/en/function.stripslashes.php](http://php.net/manual/en/function.stripslashes.php)

Viewing 1 replies (of 1 total)

The topic ‘Using PHP variables with HTML’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [theme options page](https://wordpress.org/support/topic-tag/theme-options-page/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Jack Reichert](https://wordpress.org/support/users/jackreichert/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/using-php-variables-with-html/#post-1334928)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
