# 提及、表情符号等在用户卡片详情中无法正常工作

**URL:** <https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094>\
**Category:** Bug\
**Tags:** hide-details, user-card\
**Created:** [2024年十一月8日 03: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:** 1\
**Showing post:** 9

<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:** [2024年十二月11日 17:37 UTC](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094/9 "2024-12-11T17:37:08Z")

</div>

Turns out the issue was our excerpt parser which was trying to be too clever with `<details>`.

I decided it doesn’t quite make sense to have those in the excerpt and instead replaced the whole content of the `<details>` block with “`▶ summary`” (“summary” being what’s written as the summary of the details block), like how they appear in the browser by default.

> <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

---

_[View the full topic](https://meta.discourse.org/t/mentions-emojis-etc-dont-work-properly-in-usercard-details/335094)._
