Title: [cookies_accepted] shortcode
Last modified: May 21, 2018

---

# [cookies_accepted] shortcode

 *  [fburatti](https://wordpress.org/support/users/fburatti/)
 * (@fburatti)
 * [8 years ago](https://wordpress.org/support/topic/cookies_accepted-shortcode/)
 * First of all thanks for this fantastic and useful plugin.
 * When the shortcode [cookies_accepted] is used, unfortunately, iframes and some
   tag attributes are stripped, so that some third-party widgets (facebook, twitter,
   etc) are not displayed. Why did you use the wp_kses function (inside the public
   function cookies_shortcode)?
 * Please replace:
    `$scripts = html_entity_decode( trim( wp_kses( $content, $allowed_html)));`
 * with
    `$scripts = html_entity_decode( trim( $content) );`

The topic ‘[cookies_accepted] shortcode’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [fburatti](https://wordpress.org/support/users/fburatti/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/cookies_accepted-shortcode/)
 * Status: not resolved