# HTML stripped from content when watch/replace, but not when written directly

**URL:** <https://meta.discourse.org/t/html-stripped-from-content-when-watch-replace-but-not-when-written-directly/223125>\
**Category:** Feature\
**Created:** [April 4, 2022, 11:36am UTC](https://meta.discourse.org/t/html-stripped-from-content-when-watch-replace-but-not-when-written-directly/223125 "2022-04-04T11:36:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [April 4, 2022, 11:36am UTC](https://meta.discourse.org/t/html-stripped-from-content-when-watch-replace-but-not-when-written-directly/223125/1 "2022-04-04T11:36:32Z")

</div>

I don’t know if this is a real bug. But Discourse is acting not so consistent, so? Basically this can be a feature/support/help-request too, so moderators/admins know what to do 😉

It is easier to open what I was doing and what I got.

I was writing one running/training post and a term VO2max is boring to write. I could leave it like that, but it should be VO2max — I was using tag `<sub></sub>`

I love when things are easy and automated so I put it on watched list as simple VO2max and then it should replace with form `VO<sub>2</sub>max`.

You propably know what happened. Discourse changed it to form `VO&lt;sub&gt;2&lt;/sub&gt;max`. And that’s why the post looked that way:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/a/8a2410281539a1ca2735a7e3ec228bcff67b3788.png)

But the excerpt showed tag as it should if HTML is allowed:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/5/d53247a04d1828798fca1464b251141eddf2cb85.jpeg)

If/when Discourse will strip off HTML-tags should it happend everywhere, including excerps? Or does it come from topic preview, it is in use too.

And if excerpt can see pass coding, why a post can’t?

Actually, I don’t care if HTML-tags are showing or not depending are those here, there or everywhere 😂 but can we count situation where I can’t use HTML-tags with watch/replace, but I can use same tags directly at composer, as a bug? Because otherwise I’m off topic…

---

_[View the full topic](https://meta.discourse.org/t/html-stripped-from-content-when-watch-replace-but-not-when-written-directly/223125)._
