Update dependency sanitize-html to v2 - abandoned #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.22.1
->^2.0.0
Release Notes
apostrophecms/sanitize-html
v2.10.0
Compare Source
disallowedTagMode
is set to any variant ofescape
-- just escape the disallowed tags that are present. This fixes issue #464. Thanks to Daniel LiebnertagAllowed()
helper function which takes a tag name and checks it againstoptions.allowedTags
and returnstrue
if the tag is allowed andfalse
if it is not.v2.9.0
Compare Source
v2.8.1
Compare Source
v2.8.0
Compare Source
htmlparser2
to new major version^8.0.0
. Thanks to Kedar Chandrayan for this contribution.v2.7.3
Compare Source
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. Thanks to Kedar Chandrayan for the fix.v2.7.2
Compare Source
Kedar Chandrayan for the report and the fix.
v2.7.1
Compare Source
v2.7.0
Compare Source
<img />
tags. Thanks to Zade Viggers.v2.6.1
Compare Source
!important
when used.transformTags
options that was reported on issue #506. Thanks to Alex Rantos.v2.6.0
Compare Source
allowedClasses
option. Thanks to Alex Rantos.v2.5.3
Compare Source
v2.5.2
Compare Source
null
,undefined
or implicitundefined
when value is not provided. Thanks to Artem Kostiuk for the contribution.v2.5.1
Compare Source
allowedScriptHostnames
andallowedScriptDomains
options now implicitly purge the inline content of all script tags, not just those withsrc
attributes. This behavior was already strongly implied by the fact that they purged it in the case where asrc
attribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.v2.5.0
Compare Source
allowedScriptHostnames
option, it enables you to specify which hostnames are allowed in a script tag.allowedScriptDomains
option, it enables you to specify which domains are allowed in a script tag. Thank you to Yorick Girard for this and theallowedScriptHostnames
contribution.v2.4.0
Compare Source
allowedClasses
. Thanks to zhangbenber for the contribution.v2.3.3
Compare Source
allowedSchemes
and related options did not properly block schemes containing a hyphen, plus sign, period or digit, such asms-calculator:
. Thanks to Lukas Euler for pointing out the issue.parser
option, especiallydecodeEntities: false
. See the documentation.v2.3.2
Compare Source
yarn add
syntax. Thanks to Tagir Khadshiev for the contribution.v2.3.1
Compare Source
v2.3.0
Compare Source
htmlparser2
to new major version^6.0.0
. Thanks to Bogdan Chadkin for the contribution.v2.2.0
Compare Source
tel
to the defaultallowedSchemes
. Thanks to Arne Herbots for this contribution.v2.1.2
Compare Source
v2.1.1
Compare Source
allowedClasses
with an'*'
wildcard selector. Thanks to Clemens Damke for this contribution.v2.1.0
Compare Source
sup
added to the default allowed tags list. Thanks to Julian Lam for the contribution.allowedTags
README documentation. Thanks to Marco Arduini for the contribution.v2.0.0
Compare Source
nestingLimit
option added.is-plain-object
package with named export. Thanks to Bogdan Chadkin for the contribution.postcss
package and drop Node 11 and Node 13 support (enforced by postcss).Backwards compatibility breaks:
allowedTags
array was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider theallowedTags
defaults if you are not already overriding them.v1.27.5
Compare Source
v1.27.4
Compare Source
Array.prototype.includes
, replacing it withArray.prototype.indexOf
.v1.27.3
Compare Source
transformTags
with outtextFilter
. Thanks to Andrzej Porebski for the help with a failing test.v1.27.2
Compare Source
srcset
withparse-srcset
. Thanks to Massimiliano Mirra for the contribution.v1.27.1
Compare Source
xtend
package with nativeObject.assign
.v1.27.0
Compare Source
allowedIframeDomains
option. This works similar toallowedIframeHostnames
, where you would set it to an array of web domains. It would then permit any hostname on those domains to be used in iframesrc
attributes. Thanks to Stanislav Kravchenko for the contribution.v1.26.0
Compare Source
option
element to the defaultnonTextTagsArray
of tags with contents that aren't meant to be displayed visually as text. This can be overridden with thenonTextTags
option.v1.25.0
Compare Source
enforceHtmlBoundary
option to process code bounded by thehtml
tag, discarding any code outside of those tags.style
andscript
tags are allowed, as they are inherently vulnerable to being used in XSS attacks. That warning can be disabled by including the optionallowVulnerableTags: true
so this choice is knowing and explicit.v1.24.0
Compare Source
disallowedTagsMode: 'escape'
set. Thanks to Thiago Negri for the contribution.abbr
to the defaultallowedTags
for better accessibility support. Thanks to Will Farrell for the contribution.mediaChildren
property to theframe
object in custom filters. This allows you to check for links or other parent tags that contain self-contained media to prevent collapse, regardless of whether there is also text inside. Thanks to axdg for the initial implementation and Marco Arduini for a failing test contribution.v1.23.0
Compare Source
sideEffects: false
on package.json to allow module bundlers like webpack tree-shake this module and all the dependencies from client build. Thanks to Egor Voronov for the contribution.tagName
(HTML element name) as a second parameter passed totextFilter
. Thanks to Slava for the contribution.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.