# Whitelist HTML element which is a custom element (web component)

**URL:** https://meta.discourse.org/t/whitelist-html-element-which-is-a-custom-element-web-component/150387
**Category:** Support
**Created:** [May 5, 2020, 12:14am UTC](https://meta.discourse.org/t/whitelist-html-element-which-is-a-custom-element-web-component/150387 "2020-05-05T00:14:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amundo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amundo/32/177576_2.png) [@amundo](https://meta.discourse.org/u/amundo)
#### Post date: [May 5, 2020, 12:14am UTC](https://meta.discourse.org/t/whitelist-html-element-which-is-a-custom-element-web-component/150387/1 "2020-05-05T00:14:50Z")

</div>

Is it possible to whitelist a custom element?

I have a library of custom elements I have written, and I would like to make them available to my users. @pfaffman pointed out [the bbcode wrapper theme component](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516) by @j.jaffeux, but that seems to be more about… well to be honest I’m not sure I understand the relationship of the input and the output [in the example](https://theme-creator.discourse.org/t/discourse-placeholder-theme-component/1160).

In plugin world, there do seem to be clear examples where particular HTML elements are “whitelisted” —there’s a fair amount of code but if it boils down to just following a template like this in order to get my closed set of custom elements working, I could probably figure it out:

> **[fortelabs / discourse-progressive-summarization · GitLab](https://gitlab.com/fortelabs/discourse-progressive-summarization)**
>
> A Discourse plugin to enable the use of progressive summarization techniques.

It’s pretty easy to understand how that code is working.

Would it work as well if the tag in question were a custom element (which of course has a dash), like, say, `<interlinear-text>` (which I have already defined outside of Discourse)?

---

<div class="post-metadata">

### Author: ![abk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abk/32/207505_2.png) [@abk](https://meta.discourse.org/u/abk)
#### Post date: [February 17, 2021, 9:21am UTC](https://meta.discourse.org/t/whitelist-html-element-which-is-a-custom-element-web-component/150387/2 "2021-02-17T09:21:02Z")

</div>

Hi @amundo ,

Have you had any success with this? I’m investigating the use of Webcomponents on Discourse to add consistent elements across our web properties.

Best,  
ABK

---

<div class="post-metadata">

### Author: ![amundo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amundo/32/177576_2.png) [@amundo](https://meta.discourse.org/u/amundo)
#### Post date: [February 19, 2021, 2:24pm UTC](https://meta.discourse.org/t/whitelist-html-element-which-is-a-custom-element-web-component/150387/3 "2021-02-19T14:24:39Z")

</div>

No, as you can see there was no response. 🤷🏽‍♂️
