pax_global_header00006660000000000000000000000064122551456060014520gustar00rootroot0000000000000052 comment=d59453d5cf8dea256fb44b521ab0f8435eaf6968 escape-html-1.0.1/000077500000000000000000000000001225514560600137215ustar00rootroot00000000000000escape-html-1.0.1/.gitignore000066400000000000000000000000211225514560600157020ustar00rootroot00000000000000components build escape-html-1.0.1/Makefile000066400000000000000000000002131225514560600153550ustar00rootroot00000000000000 build: components index.js @component build components: @Component install clean: rm -fr build components template.js .PHONY: clean escape-html-1.0.1/Readme.md000066400000000000000000000002021225514560600154320ustar00rootroot00000000000000 # escape-html Escape HTML entities ## Example ```js var escape = require('escape-html'); escape(str); ``` ## License MITescape-html-1.0.1/component.json000066400000000000000000000003011225514560600166100ustar00rootroot00000000000000{ "name": "escape-html", "description": "Escape HTML entities", "version": "1.0.1", "keywords": ["escape", "html", "utility"], "dependencies": {}, "scripts": [ "index.js" ] } escape-html-1.0.1/index.js000066400000000000000000000005111225514560600153630ustar00rootroot00000000000000/** * Escape special characters in the given string of html. * * @param {String} html * @return {String} * @api private */ module.exports = function(html) { return String(html) .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, ''') .replace(//g, '>'); } escape-html-1.0.1/package.json000066400000000000000000000005561225514560600162150ustar00rootroot00000000000000{ "name": "escape-html", "description": "Escape HTML entities", "version": "1.0.1", "keywords": ["escape", "html", "utility"], "dependencies": {}, "main": "index.js", "component": { "scripts": { "escape-html/index.js": "index.js" } }, "repository": { "type": "git", "url": "https://github.com/component/escape-html.git" } }