Title: It removes Embedded code
Last modified: August 20, 2016

---

# It removes Embedded code

 *  Resolved [Alicia](https://wordpress.org/support/users/sexydawnt/)
 * (@sexydawnt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/)
 * I run a giveaway and coupon database site and depend heavily upon this plug-in
   to expire dead giveaways and coupons.
 * I have tried using RaffleCopter and GiveawayTools and one other app that requires
   you to embed a Javascript based form on to a blog post. I will copy and paste
   the form exactly and the form would just disappear. When I looked at the raw 
   code, the script type=”text/javascript” tag is being stripped from the code, 
   for any of these apps.
 * I deactivated every plug-in, and the problem went away. I reactivated them individually
   until the problem returned, and it turned out to be this one. I then reactivated
   every plugin except this one, and the problem did not return.
 * Can someone please help me with this?
 * [http://wordpress.org/extend/plugins/post-expirator/](http://wordpress.org/extend/plugins/post-expirator/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Aaron Axelsen](https://wordpress.org/support/users/axelseaa/)
 * (@axelseaa)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460103)
 * The plugin does not do anything to specifically remove javascript, and that doesn’t
   make sense either. If you provide a block of sample code I can test it and see–
   are you saying it is being removed at expire time or at post time?
 *  Thread Starter [Alicia](https://wordpress.org/support/users/sexydawnt/)
 * (@sexydawnt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460147)
 * At post time – or sometimes a few minutes after post time. Whenever I click publish
   on any post that uses javascript, something is stripping out the javascript tags.
   I disabled every plug-in I had and re-enabled them one at a time. It turned out
   to be this one. Then, I re-enabled every plug-in except this and the problem 
   went away. The issue only occurs when this plug-in is enabled.
 * So, here is a post I was having a problem with
    [http://www.freenclearstuff.com/phase-foot-care-duo-giveaway/](http://www.freenclearstuff.com/phase-foot-care-duo-giveaway/)
   The entry form for the giveaway is on the page.
 * The embed code is supposed to look like this:
    `<div id="pgt516627321pgt" class
   ="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321"
   rel="nofollow" target="_BLANK2">Entry</a><script type="text/javascript" src="//
   giveawaytools.com/wid/embed.php?sk=516627321"></script><a href="http://giveawaytools.
   com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div
   >`
 * However, when Post Expirator is active, it looks like this:
    `<div id="pgt516627321pgt"
   class="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321"
   rel="nofollow" target="_BLANK2">Entry</a><a href="http://giveawaytools.com/giveaway.
   php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div>`
 * It does the exact same thing with RaffleCopter as well, and one other giveaway
   platform that required embedding javascript code. It also has done it with a 
   couple of my sponsors that have a javascript embed I place in posts about their
   products.
 *  Thread Starter [Alicia](https://wordpress.org/support/users/sexydawnt/)
 * (@sexydawnt)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460252)
 * Have you been able to look into this?
 *  [Aaron Axelsen](https://wordpress.org/support/users/axelseaa/)
 * (@axelseaa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460255)
 * Briefly – I can confirm the issue and it is related to kses. I will need to think
   through the best way to move forward with this one.
 *  [jh-sales](https://wordpress.org/support/users/jh-sales/)
 * (@jh-sales)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460298)
 * I’m having the exact same problem as SexyDawnT. Whenever a post expires it removes
   the following code in every post:
 *     ```
       <script type="text/javascript"></script>
   
       <script type="text/javascript"
       src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
       </script>
       ```
   
 * Any suggestions how can I avoid this from happening? I don’t want to uninstall
   it since this plugin is very helpful and does exactly what I need.
 *  [Aaron Axelsen](https://wordpress.org/support/users/axelseaa/)
 * (@axelseaa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460299)
 * I believe I have a fix for this that will be in the 2.0 release (waiting to confirm
   its the best way to handle it) – hope to have that out in the not to distance
   future.
 *  Thread Starter [Alicia](https://wordpress.org/support/users/sexydawnt/)
 * (@sexydawnt)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460300)
 * Thanks so much! I’ve been using a different plug-in, but it has serious problems
   and the dev abandoned the project a long time ago. I will definitely be switching
   back once yours is up and running. Thank you for all the help.
 *  [Aaron Axelsen](https://wordpress.org/support/users/axelseaa/)
 * (@axelseaa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460324)
 * If you are interested in testing – see:
 * [http://wordpress.org/support/topic/plugin-post-expirator-cron-runs-every-60-seconds?replies=14#post-3926779](http://wordpress.org/support/topic/plugin-post-expirator-cron-runs-every-60-seconds?replies=14#post-3926779)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘It removes Embedded code’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Aaron Axelsen](https://wordpress.org/support/users/axelseaa/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/it-removes-embedded-code/#post-3460324)
 * Status: resolved