Skip to content

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

Merged
merged 2 commits into from
Dec 19, 2014
Merged

Conversation

alanclarke
Copy link
Contributor

No description provided.

@alanclarke alanclarke force-pushed the entities-option branch 2 times, most recently from dc3bc92 to 4ad917f Compare December 18, 2014 16:33
@alanclarke alanclarke changed the title add excapeEntities option add escapeEntities option Dec 18, 2014
var testCases = [
{
options: { encodeHtmlEntities: true },
src: '<!DOCTYPE html><html><head></head><body>&</body></html>',

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, good point!

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 &amp; in the src instead of a bare &. The &amp; would be valid HTML.

@alanclarke alanclarke changed the title add escapeEntities option add encodeHtmlEntities option Dec 18, 2014
@inikulin
Copy link
Owner

@alanclarke Thank you! In general it looks good, but there are some remarks.

inikulin added a commit that referenced this pull request Dec 19, 2014
@inikulin inikulin merged commit f517d2f into inikulin:master Dec 19, 2014
@winhamwr
Copy link

Woohoo! 👍

Thanks Ivan and Alan!

@inikulin
Copy link
Owner

@winhamwr @alanclarke Thank you, guys. I'll try to prepare a new release within a couple of days.

@alanclarke
Copy link
Contributor Author

Awesome!

@inikulin
Copy link
Owner

New version 1.3.0 with this functionality was published to npm

@wichert wichert mentioned this pull request Nov 6, 2017
43081j pushed a commit to 43081j/parse5 that referenced this pull request Dec 28, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants