# Whitelist all the code inside of a div tag?

**URL:** https://meta.discourse.org/t/whitelist-all-the-code-inside-of-a-div-tag/51391
**Category:** Support
**Created:** [Outubro 11, 2016, 9:23am UTC](https://meta.discourse.org/t/whitelist-all-the-code-inside-of-a-div-tag/51391 "2016-10-11T09:23:32Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Alex\_Rabolin](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Rabolin](https://meta.discourse.org/u/Alex_Rabolin)
#### Post date: [Outubro 11, 2016, 11:27am UTC](https://meta.discourse.org/t/whitelist-all-the-code-inside-of-a-div-tag/51391/4 "2016-10-11T11:27:38Z")

</div>

maybe with a plugin like that :

**.js**

```
(function() {
Discourse.Markdown.whiteListTag('script', 'src', '*');
Discourse.Markdown.whiteListTag('iframe', 'src', '*');
})();

```

**.js.es6**

```
    import { registerOption } from 'pretty-text/pretty-text';

registerOption((siteSettings, opts) => {
  opts.features["..."] = true;
});

export function setup(helper) {
  helper.whiteList(['script[src]']);
  helper.whiteList(['iframe[src]']);
}

```

---

_[View the full topic](https://meta.discourse.org/t/whitelist-all-the-code-inside-of-a-div-tag/51391)._
