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

🧐[问题] Ant Design Pro 表格某一列不需要html转义 #9262

Closed
yhy0 opened this issue Nov 4, 2021 · 2 comments
Closed

🧐[问题] Ant Design Pro 表格某一列不需要html转义 #9262

yhy0 opened this issue Nov 4, 2021 · 2 comments

Comments

@yhy0
Copy link

yhy0 commented Nov 4, 2021

🧐 问题描述

Ant Design Pro 表格某一列不需要html转义
{
title: '指纹',
dataIndex: 'fingerprint',
valueType: 'text',
},

表格这一列,数据返回没有转义

"fingerprint":"<span class="ant-tag ant-tag-red"> Shiro ",

前端显示时,转义了,
image

怎么原样输出?

💻 示例代码

🚑 其他信息

@github-actions
Copy link

github-actions bot commented Nov 4, 2021

以下的 Issues 可能会帮助到你 / The following issues may help you

@chenshuai2144
Copy link
Collaborator

react 为了解决xss的问题,永远都会转的。你用pre 或者 code 包一下。


<pre>
   {text}
</pre>

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

No branches or pull requests

2 participants