Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

群消息不需要转义 <> #92

Open
Skimige opened this issue Nov 30, 2023 · 2 comments
Open

群消息不需要转义 <> #92

Skimige opened this issue Nov 30, 2023 · 2 comments

Comments

@Skimige
Copy link

Skimige commented Nov 30, 2023

别的没测,直接把

return s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
给替换成原封不动返回了。

修改之前:
<> 被转义为 &lt; &gt;,群没转义回来,频道正常

修改之后:
没转义,群正常,频道正常,但是我加的额外 logger 炸了(因为把 <> 以为是颜色符号

image

@yanyongyu
Copy link
Member

该问题目前认为是tx方面的接口尚未实现,根据反馈这个内嵌格式在排期中,不知道什么时候实现

@Cypas
Copy link
Contributor

Cypas commented Dec 17, 2023

我也碰到这个问题了,其他平台就发送正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants