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

Fix 264234: Allow passing in sanitizing options when create Content Model from HTML #2543

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

JiuqingSong
Copy link
Collaborator

We now allow passing in DomToModel options for createModelFromHtml, but if there is general or entity model inside, it is always using the default sanitizing options to sanitize HTML. This can cause some attribute to be lost.

To fix it, change the parameter type from DomToModelOption to DomToModelOptionForSanitizing so we can pass in sanitizing options in, and use this option to build sanitizing processor for general and entity model.

@JiuqingSong JiuqingSong merged commit 9fde045 into master Mar 28, 2024
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/264234_2 branch March 28, 2024 20:57
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.

3 participants