# HTML tags in og:description

**URL:** https://meta.discourse.org/t/html-tags-in-og-description/394375
**Category:** Bug
**Created:** [January 26, 2026, 8:33pm UTC](https://meta.discourse.org/t/html-tags-in-og-description/394375 "2026-01-26T20:33:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![csha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csha/32/540450_2.png) [@csha](https://meta.discourse.org/u/csha)
#### Post date: [January 26, 2026, 8:33pm UTC](https://meta.discourse.org/t/html-tags-in-og-description/394375/1 "2026-01-26T20:33:34Z")

</div>

If a category contains some rich text in its its description, the OG description tag of the corresponding page will contain HTML tags.

A great example is the Bugs category itself: [Bug - Discourse Meta](https://meta.discourse.org/c/bug/1)

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/1/d/01d9665dc3d01eef32fe0f0205ed5d176402f621.jpeg)

You can also see this in the [OG Tag Inspector](https://www.opengraph.xyz/url/https%3A%2F%2Fmeta.discourse.org%2Fc%2Fbug%2F1).

# Expected behavior

The meta tags`og:description` and `twitter:description` should only contain plaintext. Curiously the meta tag `description` already does.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 27, 2026, 6:55am UTC](https://meta.discourse.org/t/html-tags-in-og-description/394375/2 "2026-01-27T06:55:21Z")

</div>

Thanks, seems simple enough 🤗

[https://github.com/discourse/discourse/pull/37322](https://github.com/discourse/discourse/pull/37322)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 30, 2026, 9:00pm UTC](https://meta.discourse.org/t/html-tags-in-og-description/394375/3 "2026-01-30T21:00:40Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
