-
-
Notifications
You must be signed in to change notification settings - Fork 240
add encodeHtmlEntities option #32
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
Conversation
dc3bc92
to
4ad917f
Compare
var testCases = [ | ||
{ | ||
options: { encodeHtmlEntities: true }, | ||
src: '<!DOCTYPE html><html><head></head><body>&</body></html>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add something like <a href="http://example.com?hello=1&world=2"></a>
here so that we're also testing that this applies to attribute values as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, good point!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think we should use &
in the src instead of a bare &
. The &
would be valid HTML.
ad32311
to
cb1ae72
Compare
@alanclarke Thank you! In general it looks good, but there are some remarks. |
cb1ae72
to
3836b0a
Compare
3836b0a
to
9c2abb2
Compare
add encodeHtmlEntities option
Woohoo! 👍 Thanks Ivan and Alan! |
@winhamwr @alanclarke Thank you, guys. I'll try to prepare a new release within a couple of days. |
Awesome! |
New version 1.3.0 with this functionality was published to npm |
Bumps [jest](https://github.com/facebook/jest) from 27.4.4 to 27.4.5. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.4.4...v27.4.5) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
No description provided.