Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-htmlcontent

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-htmlcontent - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

dist/index.js

@@ -31,3 +31,3 @@ 'use strict';

var config = arguments[2];
return typeof data === 'string' ? data.replace(/([^<]*)(\s?<[A-z]+[^>]*>)([\s\S]*?)\s?(<\/[A-z]+>\s?)([^<]*)/gi, function (_, beforeTag, startTag, body, endTag, afterTag) {
return data && typeof data === 'string' ? data.replace(/([^<]*)(\s?<[A-z]+[^>]*>)([\s\S]*?)\s?(<\/[A-z]+>\s?)([^<]*)/gi, function (_, beforeTag, startTag, body, endTag, afterTag) {
if (/(<[A-z]+[^>]*>)(.*?)(<\/[A-z]+>)/g.test(body)) {

@@ -34,0 +34,0 @@ return enhanceTypoInHTML(body);

{
"name": "react-htmlcontent",
"version": "1.0.5",
"version": "1.0.6",
"description": "React HTMLContent Component",

@@ -5,0 +5,0 @@ "repository": {

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