# Generic bbcode wrapper for theme components

**URL:** <https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516>\
**Category:** Announcements\
**Tags:** new-feature\
**Created:** [July 20, 2019, 12:48pm UTC](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516 "2019-07-20T12:48:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)\
**Post date:** [July 1, 2021, 9:18pm UTC](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516/5 "2021-07-01T21:18:53Z")

</div>

Hi @j.jaffeux  
Thanks for this feature! Do you know the best direction how to add feature for things like

```plaintext
<button class="snipcart-add-item" data-item-id="product-1" data-item-url="/" data-item-name="Product #1" data-item-price="10.99">
  Add to cart
</button>

```

in topics. And generally - to whitelist

```plaintext
class="snipcart-add-item" data-item-id="product-1"

```

Working example - [https://codepen.io/thatfrankdev/pen/xxwRXQw](https://codepen.io/thatfrankdev/pen/xxwRXQw)

---

_[View the full topic](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)._
