We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
name: 'innerHTML', // xss白名单,可根据业务需求自己定制 value: xss(_s(${directiveMeta.value}), { whiteList: { img: ['class', 'src', 'style', 'fileurl'], br: [], i: [], a: ['class', 'href', 'target'], span: ['class', 'style'], p: ['class'], font: ['style'], b: ['class','style'], div: ['class','style'], u: ['class','style'], h1:['class','style'], h2:['class','style'], h3:['class','style'], h4:['class','style'], h5:['class','style'], h6:['class','style'], ul:['class','style'], li:['class','style'], ol:['class','style'], blockquote:['class','style'], em:['class','style'], strong:['class','style'], hr:['class','style'], code:['class','style'] } })
xss(_s(${directiveMeta.value}), { whiteList: { img: ['class', 'src', 'style', 'fileurl'], br: [], i: [], a: ['class', 'href', 'target'], span: ['class', 'style'], p: ['class'], font: ['style'], b: ['class','style'], div: ['class','style'], u: ['class','style'], h1:['class','style'], h2:['class','style'], h3:['class','style'], h4:['class','style'], h5:['class','style'], h6:['class','style'], ul:['class','style'], li:['class','style'], ol:['class','style'], blockquote:['class','style'], em:['class','style'], strong:['class','style'], hr:['class','style'], code:['class','style'] } })
The text was updated successfully, but these errors were encountered:
onTagAttr 里匹配处理
Sorry, something went wrong.
No branches or pull requests
name: 'innerHTML',
// xss白名单,可根据业务需求自己定制
value:
xss(_s(${directiveMeta.value}), { whiteList: { img: ['class', 'src', 'style', 'fileurl'], br: [], i: [], a: ['class', 'href', 'target'], span: ['class', 'style'], p: ['class'], font: ['style'], b: ['class','style'], div: ['class','style'], u: ['class','style'], h1:['class','style'], h2:['class','style'], h3:['class','style'], h4:['class','style'], h5:['class','style'], h6:['class','style'], ul:['class','style'], li:['class','style'], ol:['class','style'], blockquote:['class','style'], em:['class','style'], strong:['class','style'], hr:['class','style'], code:['class','style'] } })
The text was updated successfully, but these errors were encountered: