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

除了使用dangerouslySetInnerHTML这个东东, 还有别的好法子不 #11

Open
willylee007 opened this issue Apr 16, 2018 · 2 comments

Comments

@willylee007
Copy link

看着dangerously, 似乎说不安全, 搜了一下这个接口, 会导致xss?所以在想有没别的方法...

@redsx
Copy link
Owner

redsx commented May 11, 2018

有啊,可以自己匹配出表情,拆分为数组进行渲染

@willylee007
Copy link
Author

get. 匹配->拆分->map.

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