Socket
Socket
Sign inDemoInstall

htmltagparser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmltagparser - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

11

lib/index.js

@@ -25,3 +25,3 @@ // Generated by CoffeeScript 1.6.3

module.exports = main = function(str, strict) {
module.exports = main = function(str, strict, lowercase) {
var classes, id, t, tag;

@@ -31,2 +31,5 @@ if (strict == null) {

}
if (lowercase == null) {
lowercase = true;
}
if (typeof str !== 'string') {

@@ -42,4 +45,6 @@ throw new ParseError('(undefined)');

tag = t.tag, id = t.id, classes = t.classes;
tag = tag.toLowerCase();
if (strict && !valid_html_tags(tag)) {
if (lowercase) {
tag = tag.toLowerCase();
}
if (strict && !valid_html_tags(tag.toLowerCase())) {
throw new UnknownTagError(tag);

@@ -46,0 +51,0 @@ }

{
"name": "htmltagparser",
"version": "0.0.6",
"version": "0.0.8",
"description": "htmltagparser",

@@ -5,0 +5,0 @@ "author": "Aldo Bucchi <aldo.bucchi@gmail.com>",

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