sanitize-html
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -224,4 +224,5 @@ var htmlparser = require('htmlparser2'); | ||
skipText = false; | ||
} else { | ||
return; | ||
} | ||
return; | ||
} | ||
@@ -228,0 +229,0 @@ |
{ | ||
"name": "sanitize-html", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -272,2 +272,4 @@ # sanitize-html | ||
1.11.1: fixed a regression introduced in 1.11.0 which caused the closing tag of the parent of a `textarea` tag to be lost. Thanks to Stefano Sala, who contributed the missing test. | ||
1.11.0: added the `nonTextTags` option, with tests. | ||
@@ -274,0 +276,0 @@ |
@@ -49,2 +49,5 @@ var assert = require("assert"); | ||
}); | ||
it('should drop the content of textarea elements but keep the closing parent tag, when nested', function() { | ||
assert.equal(sanitizeHtml('<p>Paragraph<textarea>Nifty</textarea></p>'), '<p>Paragraph</p>'); | ||
}); | ||
it('should retain the content of fibble elements by default', function() { | ||
@@ -51,0 +54,0 @@ assert.equal(sanitizeHtml('<fibble>Nifty</fibble><p>Paragraph</p>'), 'Nifty<p>Paragraph</p>'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51739
789
367