-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix: portal bitcoin assets compatibility #2544
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency ReviewThe following issues were found:
License Issuesinfra/rooch-portal-v2/package.json
OpenSSF Scorecard
Scanned Manifest Filesinfra/rooch-portal-v2/package.json
|
overflowWrap: 'break-word', | ||
}} | ||
> | ||
{parsePlainText} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 text 会做安全过滤么?比如 text 里有 html 内容。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React 本身会对字符串转义,保险起见我用 DOMPurify 再处理一遍
try { | ||
parsePlainText = | ||
i.value.content_type === 'text/plain;charset=utf-8' | ||
? DOMPurify.sanitize(JSON.stringify( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jolestar done
Summary
[Summary about this PR](fix: portal bitcoin assets compatibility)