Skip to content

CSS scrubber: add justify keyword - #80

Merged
rrrene merged 1 commit into
rrrene:masterfrom
pabuisson:css-scrubber-add-text-align-justify
May 19, 2026
Merged

CSS scrubber: add justify keyword#80
rrrene merged 1 commit into
rrrene:masterfrom
pabuisson:css-scrubber-add-text-align-justify

Conversation

@pabuisson

Copy link
Copy Markdown
Contributor

Our team has been maintaining a fork of html_sanitize_ex for the past year, mainly to allow the CSS srubber to leave text-align: justify unscrubbed (text-align values).

I noticed that since our fork, this repository has been active again, so here is a PR that adds justify to the CSS scrubber allowed keywords + a corresponding test case.

Note : I didn't go further to allow all other valid text-align values (as I didn't notice this pattern on the other CSS attributes), let me know if you would like me to.

@rrrene
rrrene merged commit 6dc4aa3 into rrrene:master May 19, 2026
18 checks passed
@rrrene

rrrene commented May 19, 2026

Copy link
Copy Markdown
Owner

@pabuisson Thx! 🎉 This is now part of v1.5.1

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