Commit 5313248
committed
feat(security): add server-side email HTML sanitizer utility
Add Symfony HTML sanitization support and introduce a reusable
EmailHtmlSanitizer utility for email-safe rich text rendering.
- add dependency: symfony/html-sanitizer (^7.4)
- add EmailHtmlSanitizer class under lib/Common/Security
- decode legacy HTML entities before sanitizing
- allow basic formatting tags and safe link schemes
If needed in the future could use the symfony/html-sanitizer for other
tasks.1 parent e81f465 commit 5313248
File tree
4 files changed
+409
-2
lines changed- lib/Common/Security
- tests/Common/Security
4 files changed
+409
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments