# How do I prevent unicode heart from become ❤️ when posting?

**URL:** https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850
**Category:** Feature
**Created:** [November 6, 2024, 9:49pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850 "2024-11-06T21:49:56Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![connrrr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/connrrr/32/462412_2.png) [@connrrr](https://meta.discourse.org/u/connrrr)
#### Post date: [November 6, 2024, 9:49pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/1 "2024-11-06T21:49:56Z")

</div>

Hello! I frequent a forum that switched to Discourse back in April. I used to leave the U+2661 white heart suit unicode character in my posts but since the switch when I do that it turns into the red heart emoji. I don’t want the emoji. I want my unicode lol. I’ve tried leading with a backslash to prevent the formatting but it does nothing. Is there another way around this?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 6, 2024, 10:11pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/2 "2024-11-06T22:11:56Z")

</div>

> [@connrrr](#):
>
> U+2661

Hi there 👋 and welcome to Discourse Meta 🙂

~~I guess that forum has that unicode on watched words perhaps? I can do it here and on my instance.~~

maybe I should read the post after I see it in the previewer lol 😂

❤

~~you can also use the HTML equivalent that markdown recognizes. - `&#9825;`. ❤~~

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [November 6, 2024, 10:22pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/3 "2024-11-06T22:22:16Z")

</div>

You could use escape it with backticks: `♡`

I do recognise it’s a bit annoying when it autoconverts ☹

♠ ❤ ♢ ♣ ♤ ❤ ♦ ♧

```plaintext
♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 6, 2024, 10:26pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/4 "2024-11-06T22:26:21Z")

</div>

Maybe use an alternative heart that isn’t mapped to the Emoji?

| Glyph | Description | HTML code |
| --- | --- | --- |
| ❦ | U+2766 FLORAL HEART | `&#x2766;` |
| ❧ | U+2767 ROTATED FLORAL HEART BULLET | `&#x2767;` |
| ☙ | U+2619 REVERSED ROTATED FLORAL HEART BULLET | `&#x2619;` |
| ❥ | U+2765 ROTATED HEAVY BLACK HEART BULLET | `&#x2765;` or `&#10085;` |
| 🎔 | U+1F394 HEART WITH TIP ON THE LEFT | `&#x1f394;` |

---

<div class="post-metadata">

### Author: ![connrrr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/connrrr/32/462412_2.png) [@connrrr](https://meta.discourse.org/u/connrrr)
#### Post date: [November 6, 2024, 10:41pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/5 "2024-11-06T22:41:22Z")

</div>

I have no idea. I insert the heart with the character viewer in macOS and it auto-converts when I hit post. I was trying to find a way to convey what unicode character I was talking about because I knew it would probably auto-convert here and no one would be able to see it.

> [@supermathie](#):
>
> You could use escape it with backticks: `♡`

That’s the only method I’ve found to keep it visible but I also want to be able to add color tags to the character.

---

<div class="post-metadata">

### Author: ![connrrr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/connrrr/32/462412_2.png) [@connrrr](https://meta.discourse.org/u/connrrr)
#### Post date: [November 6, 2024, 10:47pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/7 "2024-11-06T22:47:55Z")

</div>

For the purposes of the post I was making, it had to be the empty outline of a heart.

Is there really no way around this? Why is backslashing just completely ignored in its case?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [November 6, 2024, 11:45pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/8 "2024-11-06T23:45:37Z")

</div>

Hello 👋

There are some other you can try.

[Discourse Icon Theme Component](https://meta.discourse.org/t/discourse-icon/143374)  
With this theme component you can display icons in posts.

I mean the is maybe a good option.  
`[wrap=icon id=far-heart][/wrap]`

Plus you can add a watched word for this to easy replacement in `/admin/customize/watched_words/action/replace`

For example:  
`far-heart` word replace to `[wrap=icon id=far-heart][/wrap]`  
Make sure to check in the HTML checkbox.

* * *

The second one is probably not what you want because it globally change the ❤ emoji for everyone.

Same like the first option: Use watched word replace to change the `:heart:` to `&#x2661;`.

* * *

I would prefer the first option.

---

<div class="post-metadata">

### Author: ![connrrr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/connrrr/32/462412_2.png) [@connrrr](https://meta.discourse.org/u/connrrr)
#### Post date: [November 7, 2024, 4:24pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/10 "2024-11-07T16:24:36Z")

</div>

Thank you. Can I color tag the icons?

If not, where would I put in a feature request to have formatting of `♡` into emoji prevented with a backslash? This is that important to me lol.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 7, 2024, 5:17pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/11 "2024-11-07T17:17:03Z")

</div>

I moved it to #Contribute > Feature

---

<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: [November 7, 2024, 6:45pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/12 "2024-11-07T18:45:38Z")

</div>

> [@Don](#):
>
> `far-heart` word replace to `[wrap=icon id=far-heart][/wrap]`

Are you sure `[wrap]` is allowed? I can’t make that work and AI claims it is not allowed.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 7, 2024, 7:55pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/13 "2024-11-07T19:55:22Z")

</div>

Wrap is allowed by theme components, it is allow-listed in core, will see where ask got the wrong idea from

---

<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: [November 7, 2024, 7:58pm UTC](https://meta.discourse.org/t/how-do-i-prevent-unicode-heart-from-become-when-posting/334850/14 "2024-11-07T19:58:40Z")

</div>

I kind of solved it out. I continued conversation and then it explained that can be expanded using plugins (or components). So at first it gave me minimum needed answer.

Anyway, `[wrap]` doesn’t seems to work, for me.
