0.0.3 • Published 12 years ago

esc v0.0.3

Weekly downloads
16
License
-
Repository
github
Last release
12 years ago

esc allows you to quickly escape HTML strings. It is capable of automatically extending URLs in the HTML for use in feeds.

Example

var esc = require('esc');

var html = '<a href="../some.html">link</a>';
console.log(esc(html, { uri: 'http://example.com/path/to/document.html' }));

This will print:

&lt;a href=&quot;http://example.com/path/some.html&quot;&gt;
0.0.3

12 years ago

0.0.2

13 years ago

0.0.1

13 years ago

0.0.0

13 years ago