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

lodash.unescape

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.unescape

The lodash method `_.unescape` exported as a module.

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
304K
decreased by-56.18%
Maintainers
3
Weekly downloads
 
Created

What is lodash.unescape?

The lodash.unescape package is a utility for converting HTML entities in a string back to their corresponding characters. It is part of the Lodash library, which is a popular utility library for JavaScript.

What are lodash.unescape's main functionalities?

Unescape HTML entities

This feature allows you to convert HTML entities like &lt;, &gt;, and &amp; back to their corresponding characters (<, >, and &). This is useful when you need to display HTML content that has been escaped for security reasons.

const unescape = require('lodash.unescape');
const escapedString = '&lt;div&gt;Hello &amp; welcome!&lt;/div&gt;';
const unescapedString = unescape(escapedString);
console.log(unescapedString); // Output: <div>Hello & welcome!</div>

Other packages similar to lodash.unescape

Keywords

FAQs

Package last updated on 16 Feb 2016

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