# Post HTML Element Class Being Removed

**URL:** <https://meta.discourse.org/t/post-html-element-class-being-removed/32644>\
**Category:** Product Support\
**Created:** [August 28, 2015, 1:00pm UTC](https://meta.discourse.org/t/post-html-element-class-being-removed/32644 "2015-08-28T13:00:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pnewelljr](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pnewelljr](https://meta.discourse.org/u/pnewelljr)\
**Post date:** [September 3, 2015, 5:26pm UTC](https://meta.discourse.org/t/post-html-element-class-being-removed/32644/8 "2015-09-03T17:26:54Z")

</div>

Great, thanks!

Finally, due to the other plugin I am working on, I actually need to also allow script and and link elements as well. I need some javascript to run on my posts, and it seems like if I add it to the head through Custom it only loads on posts when I refresh the page.

Anyways, would whitelisting those two work similarly?

The code I need to add looks like this:

```
<!-- Styles for the Mermaid (Flowchart) Plugin -->
<link rel="stylesheet" type="text/css" href="https://a1b162c9ba316380004223e5ebcd9fd144cbffea.googledrive.com/host/0B94LsQPLeilLfkxHY3djaE53TkEwcUZfbVY1MkxTa3Bpb25aclNhLWUzV2dLeEt4VlVFcWM/mermaid.min.css">

<!-- Custom Code to Remove <br> Tags from Mermaid (Flowchart) Posts -->
<script src="https://a1b162c9ba316380004223e5ebcd9fd144cbffea.googledrive.com/host/0B94LsQPLeilLfkxHY3djaE53TkEwcUZfbVY1MkxTa3Bpb25aclNhLWUzV2dLeEt4VlVFcWM/remove.mermaid.div.js"></script>

<!-- Code for the Mermaid (Flowchart) Plugin -->
<script src="https://a1b162c9ba316380004223e5ebcd9fd144cbffea.googledrive.com/host/0B94LsQPLeilLfkxHY3djaE53TkEwcUZfbVY1MkxTa3Bpb25aclNhLWUzV2dLeEt4VlVFcWM/mermaid.min.js"></script>

<!-- Code to Initialize the Mermaid (Flowchart) Plugin -->
<script>mermaid.initialize({startOnLoad:true});</script>

```

---

_[View the full topic](https://meta.discourse.org/t/post-html-element-class-being-removed/32644)._
