UNPKG

sanitize-html

Version:

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

51 lines (50 loc) 1.41 kB
{ "name": "sanitize-html", "version": "1.20.1", "description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis", "main": "dist/index.js", "files": [ "dist/" ], "scripts": { "prepare": "true", "build": "make clean && make all && npm run prepare && browserify dist/index.js > dist/sanitize-html.js --standalone 'sanitizeHtml'", "minify": "npm run build && uglifyjs dist/sanitize-html.js > dist/sanitize-html.min.js", "prepublishOnly": "make clean && npm run minify", "test": "npm run prepublishOnly && mocha test/test.js" }, "repository": { "type": "git", "url": "https://github.com/punkave/sanitize-html.git" }, "keywords": [ "html", "parser", "sanitizer", "html", "sanitizer", "apostrophe" ], "author": "P'unk Avenue LLC", "license": "MIT", "dependencies": { "chalk": "^2.4.1", "htmlparser2": "^3.10.0", "lodash.clonedeep": "^4.5.0", "lodash.escaperegexp": "^4.1.2", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.mergewith": "^4.6.1", "postcss": "^7.0.5", "srcset": "^1.0.0", "xtend": "^4.0.1" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-preset-env": "^1.7.0", "babelify": "^10.0.0", "browserify": "^16.2.3", "mocha": "^5.2.0", "uglify-js": "^3.4.9" } }