-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: add html sanitizing [DOCSTOOLS-1350] #177
Conversation
Сan we use the default config for sanitize, but add the ability to extend these configs? |
src/transform/sanitize.ts
Outdated
); | ||
|
||
const allowedAttributes = Array.from(new Set([...htmlAttrs, ...svgAttrs])); | ||
const allowedSchemes = ['conisio', 'jamfselfservice', 'softwarecenter']; |
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.
I think these schemes are not needed all by default
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.
I remove them
86d3a8a
to
7e8da38
Compare
PR where sanitizer was added: diplodoc-platform#177
PR where sanitizer was added: diplodoc-platform#177
Adding utility, that sanitizing HTML. By default
yfm-transform
not sanitize HTML. UseneedToSanitizeHtml: true
option to enable sanitizing