# Onebox displaying JavaScript embed code

**URL:** https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941
**Category:** Support
**Created:** [January 18, 2019, 7:40pm UTC](https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941 "2019-01-18T19:40:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nibl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nibl/32/119684_2.png) [@nibl](https://meta.discourse.org/u/nibl)
#### Post date: [January 18, 2019, 7:40pm UTC](https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941/1 "2019-01-18T19:40:05Z")

</div>

I’ve not seen this happen before. A onebox displaying the embedded markup for Google analytics instead of body text.

Is there a workaround? I believe the site it is on is a Squarespace site.

> **[Episode 113: AIR-INK — The Art History Babes](https://www.arthistorybabes.com/episode-113-airink)**
>
> \<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"\>\</script\> \<!-- Ad 1 --\> \<ins class="adsbygoogle"      style="display:block"      data-ad-c

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 18, 2019, 8:18pm UTC](https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941/2 "2019-01-18T20:18:23Z")

</div>

Their OG Description tag isn’t set correctly (that’s how the body text is determined), if you view source here’s what it contains:

```plaintext
<meta property="og:description" content="&amp;lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;!-- Ad 1 --&amp;gt; &amp;lt;ins class=&quot;adsbygoogle&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;style=&quot;display:block&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;data-ad-c"/>

```

This can also be seen in the Open Graph validator: [https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.arthistorybabes.com%2Fepisode-113-airink](https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.arthistorybabes.com%2Fepisode-113-airink)

Maybe send an email to the person who maintains that site and let them know? There’s not much else to be done.

---

<div class="post-metadata">

### Author: ![nibl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nibl/32/119684_2.png) [@nibl](https://meta.discourse.org/u/nibl)
#### Post date: [January 19, 2019, 9:57am UTC](https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941/3 "2019-01-19T09:57:58Z")

</div>

Thanks for the debugger info. It pinpoints the problem. I will pass that on to their website maintainer.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 18, 2019, 9:58am UTC](https://meta.discourse.org/t/onebox-displaying-javascript-embed-code/106941/4 "2019-02-18T09:58:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
