# 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:** 3

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [August 28, 2015, 6:40pm UTC](https://meta.discourse.org/t/post-html-element-class-being-removed/32644/3 "2015-08-28T18:40:36Z")

</div>

> [@pnewelljr](#):
>
> How exactly do I go about doing that?

You could try putting together a plugin eg.

**plugins/progress/plugin.rb**

```plaintext
# name: progress
# about: allow progress tags in posts
# version: 0.1 
# authors: Mittineague 
# url: http://localhost.com:4000/ 

register_asset "javascripts/progress.js.es6", :server_side

```

**plugins/progress/javascripts/progress.js.es6**

```plaintext
Discourse.Markdown.whiteListTag("progress", "class", /d-prog/);
Discourse.Markdown.whiteListTag("progress", "max", /[0-9\.]+/);
Discourse.Markdown.whiteListTag("progress", "value", /[0-9\.]+/);

```

i.e. “tag”, “attribute”, /acceptable values/

\* the trickiest part may be getting the regex right

---

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