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

sanitise string input for .create() #2

Open
bnjmnrsh opened this issue Nov 2, 2022 · 0 comments
Open

sanitise string input for .create() #2

bnjmnrsh opened this issue Nov 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bnjmnrsh
Copy link
Owner

bnjmnrsh commented Nov 2, 2022

Consider sanitising string input for .create(), or add a warning to notes if we want to add markup. Simple sanitisation would be to create a <template> with js, set it's innerHTML to the string and then retrieve it again, at which point any entities will be encoded.

@bnjmnrsh bnjmnrsh added the enhancement New feature or request label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant