entity-decode

WebJar for entity-decode

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

entity-decode
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

entity-decode
WebJar for entity-decode
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/shrpne/entity-decode

Download entity-decode

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/entity-decode/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>entity-decode</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/entity-decode/
implementation 'org.webjars.npm:entity-decode:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/entity-decode/
implementation ("org.webjars.npm:entity-decode:2.0.2")
'org.webjars.npm:entity-decode:jar:2.0.2'
<dependency org="org.webjars.npm" name="entity-decode" rev="2.0.2">
  <artifact name="entity-decode" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='entity-decode', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "entity-decode" % "2.0.2"
[org.webjars.npm/entity-decode "2.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : he jar [1.1.1,2)

Project Modules

There are no modules declared in this project.

entity-decode

This purpose of this library is to provide a single interface to browser and node decode implementation.

It is using the following two underlying implementations:

  • Browser: micro decode implementation using browser's NodeElement.textContent method
  • Node: he

Example usage

// Load default implementation
var decode = require('entity-decode');

// Load specific version
var decode = require('entity-decode/browser') // browser version
var decode = require('entity-decode/node') // node version

decode('foo &copy; bar &ne; baz &#x1D306; qux') 
// returns 'foo © bar ≠ baz 𝌆 qux'

License

entity-decode is available under the MIT license.

Versions

Version
2.0.2