filterhtml
Advanced tools
Comparing version 0.2.3-b to 0.2.4
@@ -285,5 +285,8 @@ var FilterHTML = (function() { | ||
HTMLFilter.prototype.filter_tag = function() { | ||
if (this.next() === '/') { | ||
var next_char = this.next(); | ||
if (next_char === '/') { | ||
this.next(); | ||
this.filter_closing_tag(); | ||
} else if (next_char === '!') { | ||
this.filter_comment(); | ||
} else { | ||
@@ -448,2 +451,6 @@ this.filter_opening_tag(); | ||
HTMLFilter.prototype.filter_comment = function() { | ||
this.extract_remaining_tag(); | ||
}; | ||
HTMLFilter.prototype.filter_attribute = function(tag_name) { | ||
@@ -450,0 +457,0 @@ var tag_spec, attribute_name, whitespace, is_allowed, value; |
@@ -5,3 +5,3 @@ { | ||
"description": "FilterHTML: A whitelisting HTML filter for Python and JavaScript", | ||
"version": "0.2.3b", | ||
"version": "0.2.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/dcollien/FilterHTML" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
243877
1697
0