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

micromark-util-decode-string

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

micromark-util-decode-string

micromark utility to decode markdown strings

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7M
decreased by-41.94%
Maintainers
1
Weekly downloads
 
Created

What is micromark-util-decode-string?

The micromark-util-decode-string package is a utility for decoding HTML entities and character references in strings. It is commonly used in the context of parsing and processing Markdown or HTML content.

What are micromark-util-decode-string's main functionalities?

Decode HTML Entities

This feature allows you to decode HTML entities in a string. For example, it converts '&' to '&'.

const decodeString = require('micromark-util-decode-string');
const decoded = decodeString('Hello & World');
console.log(decoded); // 'Hello & World'

Decode Numeric Character References

This feature decodes numeric character references in a string. For example, it converts '&' to '&'.

const decodeString = require('micromark-util-decode-string');
const decoded = decodeString('Hello & World');
console.log(decoded); // 'Hello & World'

Decode Hexadecimal Character References

This feature decodes hexadecimal character references in a string. For example, it converts '&' to '&'.

const decodeString = require('micromark-util-decode-string');
const decoded = decodeString('Hello & World');
console.log(decoded); // 'Hello & World'

Other packages similar to micromark-util-decode-string

Keywords

FAQs

Package last updated on 21 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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