8000 GitHub - liquid667/html-cleaner: Library that clears html input of possibly malicious characters
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

liquid667/html-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-cleaner

A small utility library providing utility methods to 'escape' and 'unescape' HTML entities

Installation

npm install html-cleaner --save

Usage

var cleaner = require('html-cleaner'),
	escape = cleaner.escape,
	unescape = cleaner.unescape;

var html = '<h1>Hello world!</h1>',
	escaped = escape(html),
	unescaped = unescape(escaped);

console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);

Tests

npm test

Release history

* 0.1.0 Initial release

About

Library that clears html input of possibly malicious characters

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0