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

Trailing spaces in style attributes break sanitizing #171

Closed
sergeyfedotov opened this issue May 9, 2023 · 0 comments · Fixed by #172
Closed

Trailing spaces in style attributes break sanitizing #171

sergeyfedotov opened this issue May 9, 2023 · 0 comments · Fixed by #172

Comments

@sergeyfedotov
Copy link
Contributor

When the value of the style attribute contains trailing spaces the value is omitted entirely due to a parsing issue.

Input:
<p style=" color: red ; text-align: center ; "></p>

Expected output:
<p style="color: red; text-align: center"></p>

Actual output:
<p></p>

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 a pull request may close this issue.

1 participant