# 유저카드 상세 정보에서 멘션, 이모지 등이 제대로 작동하지 않아요

**URL:** https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094
**Category:** Bug
**Tags:** hide-details, user-card
**Created:** [11월 8, 2024, 3:35오전 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094 "2024-11-08T03:35:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [11월 8, 2024, 3:35오전 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/1 "2024-11-08T03:35:15Z")

</div>

프로필에 details 섹션을 넣고 열면 HTML 속성이 작동하지 않습니다. 최신 버전의 discourse에서도 발생합니다.

 ![i hate ai. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/1/0/710bba3a637891521283d72e12b87253e2029531.jpeg)  
 ![no i am not a spaceship (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/2/4/02496e0d7df90144d2e06b296ea4b5aba3e48043.jpeg)

---

<div class="post-metadata">

### Author: ![bob\_the\_tomato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bob_the_tomato/32/454388_2.png) [@bob\_the\_tomato](https://meta.discourse.org/u/bob_the_tomato)
#### Post date: [12월 8, 2024, 7:06오후 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/2 "2024-12-08T19:06:41Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/f/5/d/f5d204ea228d046d4a11278178d207c1a7c71bb9.jpeg)  
Discourse에서 details 기능을 사용하여 프로필(바이오)의 [첫 2줄]에 삽입했을 때, 클릭하면 다음과 같이 표시됩니다:

```plaintext
[text put in] <br>

```

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [12월 9, 2024, 6:04오후 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/7 "2024-12-09T18:04:03Z")

</div>

이것은 버그가 아니라 의도된 설계가 아닌가요? 🤔

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 9, 2024, 6:08오후 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/8 "2024-12-09T18:08:15Z")

</div>

명확한 보안상의 이유로, 사용자 카드에서 지원되는 스타일링/마크다운은 매우 제한적입니다.

이것은 보안 문제로 보이지는 않지만,

> ****
>
> 태그를 허용해서는 안 되므로 버그라고 생각합니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 11, 2024, 5:37오후 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/9 "2024-12-11T17:37:08Z")

</div>

결국 문제는 `<details>` 태그를 지나치게 교묘하게 처리하려던 우리 발췌문 파서(excerpt parser)였습니다.

발췌문에 해당 태그를 포함하는 것이 적절하지 않다고 판단하여, `<details>` 블록의 전체 내용을 “`▶ 요약`”(여기서 "요약"은 details 블록의 요약으로 작성된 텍스트)으로 대체했습니다. 이는 브라우저에서 기본적으로 표시되는 방식과 동일합니다.

> <https://github.com/discourse/discourse/pull/30229>
>
> It doesn't make much sense to have the content of a \`\<details\>\` in an excerpt so… I replaced them with "▶ summary" instead.
> 
> That way, they can't be (ab)used in user cards for example.
> 
> Reference - https://meta.discourse.org/t/335094

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 12, 2024, 7:00오전 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/10 "2024-12-12T07:00:22Z")

</div>

이 주제는 13시간 후 자동으로 닫혔습니다. 더 이상 새 답변을 작성할 수 없습니다.
