Socket
Socket
Sign inDemoInstall

filterhtml

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filterhtml - npm Package Compare versions

Comparing version 0.2.3-b to 0.2.4

9

lib/FilterHTML.js

@@ -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;

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc