If the argument is a number, convert it to a string, for backwards compatibility. Thanks to Alexander Schranz.
2.8.0 (2022-12-12)
Upgrades htmlparser2 to new major version ^8.0.0. Thanks to Kedar Chandrayan for this contribution.
2.7.3 (2022-10-24)
If allowedTags is falsy but not exactly false, then do not assume that all tags are allowed. Rather, allow no tags in this case, to be on the safe side. This matches the existing documentation and fixes [issue #176](apostrophecms/sanitize-html#176). Thanks to Kedar Chandrayan for the fix.
2.7.2 (2022-09-15)
Closing tags must agree with opening tags. This fixes [issue #549](apostrophecms/sanitize-html#549), in which closing tags not associated with any permitted opening tag could be passed through. No known exploit exists, but it's better not to permit this. Thanks to
Kedar Chandrayan for the report and the fix.
2.7.1 (2022-07-20)
Protocol-relative URLs are properly supported for script tags. Thanks to paweljq.
A denial-of-service vulnerability has been fixed by replacing global regular expression replacement logic for comment removal with a new implementation. Thanks to Nariyoshi Chida of NTT Security Japan for pointing out the issue.
2.7.0 (2022-02-04)
Allows a more sensible set of default attributes on <img /> tags. Thanks to Zade Viggers.
2.6.1 (2021-12-08)
Fixes style filtering to retain !important when used.
Support for regular expressions in the allowedClasses option. Thanks to Alex Rantos.
2.5.3 (2021-11-02):
Fixed bug introduced by klona 2.0.5, by removing klona entirely.
2.5.2 (2021-10-13):
Nullish HTML input now returns an empty string. Nullish value may be explicit null, undefined or implicit undefined when value is not provided. Thanks to Artem Kostiuk for the contribution.
Documented that all text content is escaped. Thanks to Siddharth Singh.
2.5.1 (2021-09-14):
The allowedScriptHostnames and allowedScriptDomains options now implicitly purge the inline content of all script tags, not just those with src attributes. This behavior was already strongly implied by the fact that they purged it in the case where a src attribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.
2.5.0 (2021-09-08):
New allowedScriptHostnames option, it enables you to specify which hostnames are allowed in a script tag.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will merge this PR once CI passes on it, as requested by @diogoscf.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/diogoscf/github-lines/network/alerts).
Bumps sanitize-html to 2.8.1 and updates ancestor dependency matrix-bot-sdk. These dependencies need to be updated together.
Updates
sanitize-html
from 1.27.5 to 2.8.1Changelog
Sourced from sanitize-html's changelog.
... (truncated)
Commits
Updates
matrix-bot-sdk
from 0.5.17 to 0.5.19Commits
4054706
0.5.19a827720
Merge pull request #130 from turt2live/dependabot/npm_and_yarn/lodash-4.17.213452df2
Merge remote-tracking branch 'origin/master'5114fa4
Fix "in reply to" spacing7c7dc62
Bump lodash from 4.17.15 to 4.17.21db31909
Merge pull request #127 from turt2live/dependabot/npm_and_yarn/glob-parent-5.1.277fbe82
Fix statement declaration7a5629c
Fix power level handling1f18840
Improve logging of request errors96ff774
Bump glob-parent from 5.1.1 to 5.1.2Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will merge this PR once CI passes on it, as requested by @diogoscf.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/diogoscf/github-lines/network/alerts).