Socket
Socket
Sign inDemoInstall

highlight-html-syntax

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlight-html-syntax - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

2

index.js

@@ -15,3 +15,3 @@ const Highlight = (string) => {

string = string.replace(/(\s.*)(?==<)/g, ' <span class="global">$1</span>');
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(&lt;[^\s&gt;]+)/g, '<span class="method">$1</span>');
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(&lt;[^\s&;]+)/g, '<span class="method">$1</span>');
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(\/?&gt;)/g, '<span class="method">$1</span>');

@@ -18,0 +18,0 @@

{
"name": "highlight-html-syntax",
"version": "1.0.3",
"description": "Syntax Highlighter for HTML code",
"version": "1.1.0",
"description": "Simple Syntax Highlighter for HTML code",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

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