sanitize-html 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## Changelog
2
2
 
3
+ 1.20.1: Fix failing tests, add CircleCI config
4
+
3
5
  1.20.0: reduced size of npm package via the `files` key; we only need to publish what's in `dist`. Thanks to Steven. There should be zero impact on behavior, minor version bump is precautionary.
4
6
 
5
7
  1.19.3: reverted to `postcss` due to a [reported issue with `css-tree` that might or might not have XSS implications](https://github.com/punkave/sanitize-html/issues/269).
@@ -176,4 +178,3 @@ We're rocking our tests and have been working great in production for months, so
176
178
  0.1.1: discard the text of script tags.
177
179
 
178
180
  0.1.0: initial release.
179
-
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # sanitize-html
2
2
 
3
- <a href="http://apostrophenow.org/"><img src="https://raw.github.com/punkave/sanitize-html/master/logos/logo-box-madefor.png" align="right" /></a>
3
+ [![CircleCI](https://circleci.com/gh/punkave/sanitize-html/tree/master.svg?style=svg)](https://circleci.com/gh/punkave/sanitize-html/tree/master)
4
+
5
+ <a href="https://apostrophecms.org/"><img src="https://raw.github.com/punkave/sanitize-html/master/logos/logo-box-madefor.png" align="right" /></a>
4
6
 
5
7
  `sanitize-html` provides a simple HTML sanitizer with a clear API.
6
8
 
package/dist/index.js CHANGED
@@ -547,9 +547,9 @@ function sanitizeHtml(html, options, _recursing) {
547
547
  */
548
548
  function stringifyStyleAttributes(filteredAST) {
549
549
  return filteredAST.nodes[0].nodes.reduce(function (extractedAttributes, attributeObject) {
550
- extractedAttributes.push(attributeObject.prop + ':' + attributeObject.value + ';');
550
+ extractedAttributes.push(attributeObject.prop + ':' + attributeObject.value);
551
551
  return extractedAttributes;
552
- }, []).join('');
552
+ }, []).join(';');
553
553
  }
554
554
 
555
555
  /**