We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create-html-element only supports innerHTML via the prop value, whose name doesn't make this clear.
create-html-element
innerHTML
value
There should probably be a way to differentiate innerHTML from textContent, perhaps by using html and text, or literally innerHTML and textContent.
textContent
html
text
textContent would be escaped by escape-goat
escape-goat
The text was updated successfully, but these errors were encountered:
Removing the value option and replacing it with html and text options makes sense to me.
Sorry, something went wrong.
Replace value option with html and text
4eaf9a5
Fixes sindresorhus#2.
Replace value option with html and text (#3)
d24676e
Fixes #2.
No branches or pull requests
create-html-element
only supportsinnerHTML
via the propvalue
, whose name doesn't make this clear.There should probably be a way to differentiate
innerHTML
fromtextContent
, perhaps by usinghtml
andtext
, or literallyinnerHTML
andtextContent
.textContent
would be escaped byescape-goat
The text was updated successfully, but these errors were encountered: