# Lege rt-tags verwijderen bij quoten

**URL:** <https://meta.discourse.org/t/quoting-empty-rt-tags-removes-them/176290>\
**Category:** Product Support\
**Created:** [16 januari 2021 om 15:58 UTC](https://meta.discourse.org/t/quoting-empty-rt-tags-removes-them/176290 "2021-01-16T15:58:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [29 januari 2021 om 00:16 UTC](https://meta.discourse.org/t/quoting-empty-rt-tags-removes-them/176290/4 "2021-01-29T00:16:24Z")

</div>

It looks like the correct version of the first one would be:  
`<ruby><rb>振<rb><rt>ふ<rt>り<rb>仮<rb><rt>が<rb>名<rt>な</ruby>`

振ふり仮が名な

Compared to:  
`<ruby>振<rt>ふ</rt>り<rt></rt>仮<rt>が</rt>名<rt>な</rt></ruby>`

振ふり仮が名な

So about the same length. I’ve actually never seen the `rb` approach in the first one. I’m not sure if people generally use that version. It does quote correctly though. However, I’m still curious. Are there any other cases where empty HTML tags are copied over when quoting?

I build Discourse plugin wrapping an existing markdown-it plugin for ruby tags, and they follow the traditional `rt` approach instead of the `rb` + `rt` approach. Unfortunately, this means quoting in this one specific case would result in bad HTML. Obviously it can happen if people wrote the `ruby` HTML manually. I just happened to notice from the plugin.

---

_[View the full topic](https://meta.discourse.org/t/quoting-empty-rt-tags-removes-them/176290)._
