Title: Using Anyvar for HTML-Code
Last modified: August 20, 2016

---

# Using Anyvar for HTML-Code

 *  [mackser](https://wordpress.org/support/users/mackser/)
 * (@mackser)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/using-anyvar-for-html-code/)
 * Hi there,
 * I’m using Anyvar to simply insert HTML-code into my posts – without having to
   deal with the auto-p and html-stripping functions of the wordpress editor.
 * Now, the code i want to embed is something like “<div><form>blabla</form></div
   >”, the variable I determined is “optinform”.
 * So I’m writing something like this:
 *     ```
       Hi, this is my text!
   
       <h3>Sign up now!</h3>
   
       [optinform]
       ```
   
 * The code I get out, is:
 *     ```
       <p>Hi, this is my text!</p>
   
       <h3>Sign up now!</h3>
   
       <p><div><form>blabla</form></div></p>
       ```
   
 * How can I make wordpress to not put p-tags around my div-containers?
 * Thank you for your help.
 * Cheers
 * Mackser

Viewing 1 replies (of 1 total)

 *  [calfzhou](https://wordpress.org/support/users/calfzhou/)
 * (@calfzhou)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/using-anyvar-for-html-code/#post-2197647)
 * meeting the similar issue. Most times the auto-p is great, but in some special
   cases it become terrible.
 * Disable auto-p is a method but not the best solution. Because I need manually
   add a lot of p. It would be nice when i press “Enter” in visual editor, it can
   automatically add <p> in HTML source code, then I can remove useless p in HTML
   editor.

Viewing 1 replies (of 1 total)

The topic ‘Using Anyvar for HTML-Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anyvar.svg)
 * [AnyVar](https://wordpress.org/plugins/anyvar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anyvar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anyvar/)
 * [Active Topics](https://wordpress.org/support/plugin/anyvar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anyvar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anyvar/reviews/)

## Tags

 * [<p>](https://wordpress.org/support/topic-tag/p/)
 * [autop](https://wordpress.org/support/topic-tag/autop/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [p tag](https://wordpress.org/support/topic-tag/p-tag/)

 * 1 reply
 * 2 participants
 * Last reply from: [calfzhou](https://wordpress.org/support/users/calfzhou/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/using-anyvar-for-html-code/#post-2197647)
 * Status: not resolved