New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xmldecode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmldecode

Decode the predefined XML entities (amp, lt, gt, apos, quot), CharRefs and CDATA sections.

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
15
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

xmldecode

Decode the predefined XML entities (amp, lt, gt, apos, quot), CharRefs and CDATA sections.

Definitions: Predefined XML entities, CharRefs

API

This module exports one function:

xmldecode(orig)

Returns a string with the text decoded from string orig.

Usage

see test.js

  • xmldefuse: Encode the predefined XML entities and CharRefs. Opt-out CharRef 39 for HTML. Bonus: Encode CDATA.
  • xmlunidefuse: Convert some additional, easily overlooked Unicode characters to CharRefs.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Keywords

apos

FAQs

Package last updated on 13 Sep 2020

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