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

HTML vs Text value #2

Closed
fregante opened this issue Jan 16, 2018 · 1 comment
Closed

HTML vs Text value #2

fregante opened this issue Jan 16, 2018 · 1 comment

Comments

@fregante
Copy link
Collaborator

create-html-element only supports innerHTML via the prop value, whose name doesn't make this clear.

There should probably be a way to differentiate innerHTML from textContent, perhaps by using html and text, or literally innerHTML and textContent.

textContent would be escaped by escape-goat

@sindresorhus
Copy link
Owner

Removing the value option and replacing it with html and text options makes sense to me.

kevva added a commit to kevva/create-html-element that referenced this issue Mar 5, 2018
sindresorhus pushed a commit that referenced this issue May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants