Skip to content
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

Maintaining the order of the attributes in sanitized html. #1011

Conversation

parveshgoyal01
Copy link

@parveshgoyal01 parveshgoyal01 commented Oct 27, 2024

Summary

Maintaining the order of the attributes in sanitized html.

Background & Context

After every sanitize, the output keeps on changing.

For instance,
when input given is <div class="column-2" style="padding-top: 10px;"></div>

sanitized output comes out to be : <div style="padding-top: 10px;" class="column-2"></div>

and
when input given is <div style="padding-top: 10px;" class="column-2"></div>

sanitized output comes out to be : <div class="column-2" style="padding-top: 10px;"></div>

Because of above, output is not consistent across multiple sanitizations.

@cure53
Copy link
Owner

cure53 commented Oct 31, 2024

Sadly we cannot allow for this one as it causes security issues and bypasses, sorry.

@cure53 cure53 closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants