# Rich text editor erases HTML tags from post

**URL:** https://meta.discourse.org/t/rich-text-editor-erases-html-tags-from-post/393758
**Category:** Bug
**Tags:** composer
**Created:** [January 19, 2026, 1:36am UTC](https://meta.discourse.org/t/rich-text-editor-erases-html-tags-from-post/393758 "2026-01-19T01:36:54Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [January 19, 2026, 1:36am UTC](https://meta.discourse.org/t/rich-text-editor-erases-html-tags-from-post/393758/1 "2026-01-19T01:36:54Z")

</div>

If you use the markdown editor and include some raw HTML tags (e.g. `br` tag for table formatting), then edit the post using the rich text editor, the HTML content is lost. I don’t know if this is the case for all allowed HTML tags, but at the very least it happens for `br` tags. This may not be a big deal for regular posts since most users presumably stick with one type of editor, but for wiki posts this is a major issue. Over on WaniKani, we have a [massive wiki post](https://community.wanikani.com/t/master-list-of-book-clubs/35283) with several tables that rely on `br` tags for structure. However, if someone happens to edit the wiki in rich text mode, all `br` tags are removed, ruining the formatting of the post.

(Secondarily, there doesn’t seem to be an easy way to revert to a previous version of the wiki. If that was available, at least some of this pain would be mitigated. I can write up a feature request for that as well if the feature doesn’t already exist.)

* * *

Markdown editor:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/f/a/5fa4cc956e0b019d8c662f6d7e7dc4a8bbdc596a.png)

Rich text editor:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/0/2/5027c428c2d453df1e32cc8a2c90d3cd0b75804f.png)

---

_[View the full topic](https://meta.discourse.org/t/rich-text-editor-erases-html-tags-from-post/393758)._
