mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
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:
parent
626ffec0ee
commit
150e68f20a
|
|
@ -114,7 +114,7 @@ const IframeHtmlCodeBlock = ({
|
|||
() => (
|
||||
<iframe
|
||||
srcDoc={String(children)}
|
||||
sandbox=""
|
||||
sandbox="allow-popups"
|
||||
referrerPolicy="no-referrer"
|
||||
style={{
|
||||
width: '100%',
|
||||
|
|
|
|||
Loading…
Reference in New Issue