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

The sanitize of the save method and the convert to method interfere with each other #2814

Open
chf-gh opened this issue Aug 16, 2024 · 0 comments
Labels

Comments

@chf-gh
Copy link

chf-gh commented Aug 16, 2024

The format required by the block save method:

static get sanitize(){
	return {
		url: false,
		caption: {
                     a: true
                 }
	}
}

The outermost object returned is a property, not a label.
convent to also uses this method, but it passes the result directly as a rule to and HTMLJanitor, as shown in the following figure

image

11

which causes the cleanup to fail.
Also, I noticed that even with the sanitize method configured, the save method still didn't clean up the data.

@chf-gh chf-gh added the bug label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant