Fixed the issue where anchor (<a>) tags in reply content could not properly open links in a new tab or window. For security reasons, it is recommended to add rel="noopener" when using target="_blank" in <a> tags. (#5176)

Co-authored-by: 杨欣雨 <yangxinyu@cmdi.chinamobile.com>
This commit is contained in:
SweenyYang
2025-07-09 08:51:54 +08:00
committed by GitHub
parent 626ffec0ee
commit 150e68f20a

View File

@@ -114,7 +114,7 @@ const IframeHtmlCodeBlock = ({
() => (
<iframe
srcDoc={String(children)}
sandbox=""
sandbox="allow-popups"
referrerPolicy="no-referrer"
style={{
width: '100%',