SIGN IN SIGN UP

fix(web): 放行 a 标签 target 并补 rel=noopener

DOMPurify 默认属性白名单不含 target,公告等富文本里的 target="_blank" 被剥。
显式 ADD_ATTR 放行,并用 afterSanitizeAttributes 给 _blank 强制补
rel="noopener noreferrer" 防反向 tabnabbing。

同时删掉 window.Sanitizer 分支:它调的 getConfiguration/sanitizeFor 是早期
草案 API,现行浏览器必然抛异常走 DOMPurify,且一旦生效会绕过上面的修复。
N
noreply committed
f6363c9dbcf2392dd11837c85b24d25658b5b192
Parent: eccda5c