{"_id":"striptags","_rev":"62-93a7344fa732932c9e8bc94110096089","name":"striptags","dist-tags":{"latest":"3.2.0","alpha":"4.0.0-alpha.4"},"versions":{"1.0.0":{"name":"striptags","version":"1.0.0","keywords":["striptags","strip_tags","html"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris","email":"erictnorris@gmail.com"},"license":"MIT","_id":"striptags@1.0.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"b7f466eaa106523809e0d740e067c5dd8d3e483e","tarball":"https://registry.npmjs.org/striptags/-/striptags-1.0.0.tgz","integrity":"sha512-3IL6QQLRsJT5DN+tBBP9bcx3ovvnxmmg6w7RWnsggHvvfUuVYHATgXGEyChuy3QAUl/RvoLAji5H0YtGhco3Tw==","signatures":[{"sig":"MEUCIQC6tO8YfFnb92s7MTl6zLHIknCDJaivHda4T6ecLber5gIgZVa8mPoSWGPEgsFLFiY/5y1Yu20os3LjLOJgqhyfDUg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/striptags.js","_from":".","_shasum":"b7f466eaa106523809e0d740e067c5dd8d3e483e","_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"1.4.9","description":"PHP strip_tags in Node.js","directories":{},"dependencies":{"domutils":"1.5","htmlparser2":"3.7"}},"2.0.0":{"name":"striptags","version":"2.0.0","keywords":["striptags","strip_tags","html"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.0.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"f784f89f05c22ee5c69746ba1eda85494d8476d6","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.0.0.tgz","integrity":"sha512-j3/qIAHSUbkB2c9d+LEKc5OWGtbXOkmg+5NWi6a4D9oxPfMf1+VJe3wW/pnkhKiEtcJRHJEavqrbdEtozPS2TQ==","signatures":[{"sig":"MEUCIQCDd6UwB18my5jp+TAKztap4J/c6rXiPf3qgMGqw97ntgIgG0bBHRT1sv408P3lqb7RwTRsYYFmDxVIOwewBoevTZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"f784f89f05c22ee5c69746ba1eda85494d8476d6","gitHead":"5a27edf285bec8e877da8dd826fbf255e219488a","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"1.4.14","description":"PHP strip_tags in Node.js","directories":{},"jshintConfig":{"node":true},"devDependencies":{"mocha":"^2.1.0","blanket":"^1.1.6"}},"2.0.1":{"name":"striptags","version":"2.0.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.0.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"a74240c71b6fcc01c32dc662fe42472b5f895b2e","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.0.1.tgz","integrity":"sha512-EOGAyCL4BEJ6HCQZ7Ox+Ku8FMZfLIz3qYC4SBB/lmgQ/V9sG0N39l+qAiksIa/Tl6+NXBI2xmjGVfidnvGGJqg==","signatures":[{"sig":"MEUCIDsmzOsRj9eLKAirXkCa9fG0yKxReBC2tbLBUvIHiMZ2AiEAsteMXSVui0DfAuMYiJmH45td0uIwy8+t0YbWbo6i04M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"a74240c71b6fcc01c32dc662fe42472b5f895b2e","gitHead":"8b8f90187eb4c55321d972c3ea0277c965683701","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"1.4.14","description":"PHP strip_tags in Node.js","directories":{},"jshintConfig":{"node":true},"devDependencies":{"mocha":"^2.1.0","blanket":"^1.1.6"}},"2.0.2":{"name":"striptags","version":"2.0.2","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.0.2","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"b89a61a2d4560fb3eb724140373b0d044ec11012","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.0.2.tgz","integrity":"sha512-LibBq8x5+yIsJKzcb8X0FwSskoe/2//teMA/aVV7qL80t5tbJB3uuexuQwacnGcI3xH47udtNhe47KWYB1UR6Q==","signatures":[{"sig":"MEUCIBn6hoo1UhsL0cWLZEZwkl6N5bQ7EtnVjRx0CEmlGMbCAiEA1+FZuQ4CxS6o8Me2E55X/DsIApL5zlvoVFwoAJeDDeo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"b89a61a2d4560fb3eb724140373b0d044ec11012","gitHead":"e966f4e6ec1ac662f5a0977cf49f153a9b0540d8","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"1.4.21","description":"PHP strip_tags in Node.js","directories":{},"jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"}},"2.0.3":{"name":"striptags","version":"2.0.3","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.0.3","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"f4b41fc318a3e3601acfd11d6f46e2b6c50f9046","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.0.3.tgz","integrity":"sha512-6P0ZnY8e4WeXpN6knRLwEjUGPqtMOxTHFHnBdP9YiWwUSejy47wGxXubExsirtJWceFHNHU6mEEjXVCX1FCBMg==","signatures":[{"sig":"MEQCIGlNzMuj9qTTQtFr3VD8hiFvLcIuy7D+FyWRrGHf8ytwAiBsNrbC/K+Ub3sTRBwMz/c5my+OMEfSHrBkVw+3eacAXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"f4b41fc318a3e3601acfd11d6f46e2b6c50f9046","gitHead":"d27f9541861be93ec0920e0f94c30eb2c56dcd8a","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"2.11.3","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"0.12.7","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"}},"2.0.4":{"name":"striptags","version":"2.0.4","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.0.4","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"6447ba8bca082297a1a1997bca4379741ef8758e","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.0.4.tgz","integrity":"sha512-rVMmhAHaVk3FvE+2yWVvgxqjO+Ylrl06mrltNHA2Tsk3ehaIVXyrGxTuH84t2pFu5vrsGt9i689H7DCnnuQM6A==","signatures":[{"sig":"MEQCIG5YrlXvdLyFN9cQxH3k7TgWJq170zaThCnG2197Xr/wAiBeD6w/A4eavvkCRpo+KPM4VTcxYniRHvteyiF6DkAuXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"6447ba8bca082297a1a1997bca4379741ef8758e","gitHead":"6d326377f0800a0940ca649dda722b73e10bf558","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"2.11.3","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"0.12.7","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"}},"2.1.0":{"name":"striptags","version":"2.1.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.1.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"a2b6583f4cfd75b1b9956d997baa84601c3215b1","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.1.0.tgz","integrity":"sha512-vYFZ0MGpa9pIKzbQfR9ntEaJ96lJcNWADkQYCc27GxIbB/QdkGbSizG2flF/Vlh25haDumNe/LHYaxxEDxIU8A==","signatures":[{"sig":"MEQCIBQdOjg8cGJK8WyXOXOqPQtFUimrulIwXwwCJRBLla56AiBxjmVigGyEN/qVcA4Ez/t74O+fRYIH4JshoJukScVgNw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"striptags.js","_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"a2b6583f4cfd75b1b9956d997baa84601c3215b1","gitHead":"9ed41d463b36b39e1bee2ad08cbc15f980b416fa","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.3.12","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"5.3.0","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"}},"2.1.1":{"name":"striptags","version":"2.1.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.1.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"e771b8b3193b97bbed392dca59a78279d3c8a6a6","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.1.1.tgz","integrity":"sha512-e/bs9lwxBkyg4jVtqueD7AzLUiA0g/eVzqewaAO71NsRBDH1kXeVknVAIcDYDIBd+6buxv7uSdM5n9hW7FXCSQ==","signatures":[{"sig":"MEYCIQC4sZJHXx+WsHMsMSt7jtsqZlPHoJamgO6j85f3VIQbrwIhAP8l3f7Hq2oOArZSAHWZzoHV3JPBYmUBMyo1eORx2es7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"striptags.js","_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"e771b8b3193b97bbed392dca59a78279d3c8a6a6","gitHead":"554736692f1b768d214426b5abcd0306d308602e","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.3.12","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"5.3.0","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"}},"2.2.0":{"name":"striptags","version":"2.2.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.2.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"7e77ecbe961452f11c2587462dfd8e4ea1d3a0bd","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.2.0.tgz","integrity":"sha512-sLP6Sts+z4VmNzj4x6o8tQiQS/UFGnivj1g5IY5MAisAQu4mZ6pLNLBSIVIcGTCUfQmU8RChxLlzw+EF8aW7dA==","signatures":[{"sig":"MEYCIQC1MPA5cZhpRw9RKesCqTlrRER96DGGZQ6jpLVBUWWClAIhAMwQZOOBGoxvrtbMN6bXU7S/6dMhoS0lhT2uSp+45Ua5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"striptags.js","_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"7e77ecbe961452f11c2587462dfd8e4ea1d3a0bd","gitHead":"b975a4a9cd21b726341504cbfacd9ca3389d5bb4","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"deprecated":"Node v4 compatibility fixed in v2.2.1","repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.10.10","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"6.9.4","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/striptags-2.2.0.tgz_1484716912752_0.7641595755703747","host":"packages-18-east.internal.npmjs.com"}},"2.2.1":{"name":"striptags","version":"2.2.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@2.2.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"4c450b708d41b8bf39cf24c49ff234fc6aabfd32","tarball":"https://registry.npmjs.org/striptags/-/striptags-2.2.1.tgz","integrity":"sha512-vZTvmFP0IYu/zn8MXV6PrLb6VKbd9WGSEnlm4D5RNXS/+zYYlHrSfJgoBw1w56D6RJCr515er3BittRGQqihLA==","signatures":[{"sig":"MEYCIQCgMCAj0F5XzTJVgTBPX7tHWzEojRj6RqcduiZW2RM+PwIhAIdLVjasGEsXFDLpDfJRCKiTppkjX1ezcqsCyK/5iEQ4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"striptags.js","_from":".","config":{"blanket":{"pattern":"src/","data-cover-reporter-options":{"shortnames":true}}},"_shasum":"4c450b708d41b8bf39cf24c49ff234fc6aabfd32","gitHead":"1563e2f2a60b088750fec7e83136242313842086","scripts":{"test":"node ./node_modules/mocha/bin/mocha","test-coverage":"node ./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.10.10","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"6.9.4","jshintConfig":{"node":true},"devDependencies":{"mocha":"~2.1.0","blanket":"~1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/striptags-2.2.1.tgz_1484743797874_0.8673434786032885","host":"packages-18-east.internal.npmjs.com"}},"3.0.0":{"name":"striptags","version":"3.0.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@3.0.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"c34199385bb94cf7d233e85044da6f19826524b0","tarball":"https://registry.npmjs.org/striptags/-/striptags-3.0.0.tgz","integrity":"sha512-PAUTelNpTS8a3X2AWGM+tc6gGLD2CRfvGWW3CJUIMVXjPkWKXNiztgEkITxvwakIn6h6WhDuMBOhn6UUmaa7TA==","signatures":[{"sig":"MEYCIQDkV/COFJ67+nVk5kBfz4tLxEJx+aeUdWXHfFeLepIYhwIhAOLKQoN22PuzqDpMBPkxWFLrACRSN4C+uvbPciNBzwMl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/striptags.js","_from":".","_shasum":"c34199385bb94cf7d233e85044da6f19826524b0","gitHead":"cd538252a7a8e7cad5e5649843f66e8185ec902e","scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.10.10","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"6.9.4","devDependencies":{"mocha":"^3.2.0","istanbul":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/striptags-3.0.0.tgz_1485925550370_0.24063916015438735","host":"packages-18-east.internal.npmjs.com"}},"3.0.1":{"name":"striptags","version":"3.0.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@3.0.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"48f0d6932549c47bb3582920c87527cf49a160c1","tarball":"https://registry.npmjs.org/striptags/-/striptags-3.0.1.tgz","integrity":"sha512-ssNn5Kh2DmSzCj0R2gZIN1Gy9vBV5dr2wEVB4wPwwLq4XTxXH5YcSnm+Pa6eEjTyzudO4XE6TCwhuc54YgumBA==","signatures":[{"sig":"MEQCIHtSqSe83SNzqh7Fj43/T0kD1bPKnDCYcWzsgQBRw5+UAiAdzxY1MBxypQIzK0hTiMuT+FyjiRpw3pCorJOR7zgyvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/striptags.js","_from":".","_shasum":"48f0d6932549c47bb3582920c87527cf49a160c1","gitHead":"742795158765afe0bbcd7fe34739739cf0da1325","scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.10.10","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"6.9.4","devDependencies":{"mocha":"^3.2.0","istanbul":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/striptags-3.0.1.tgz_1486253820035_0.37414117925800383","host":"packages-18-east.internal.npmjs.com"}},"3.1.0":{"name":"striptags","version":"3.1.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@3.1.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"763e534338d9cf542f004a4b1eb099e32d295e44","tarball":"https://registry.npmjs.org/striptags/-/striptags-3.1.0.tgz","integrity":"sha512-2wPittK5g/eAT/SFxI+7n10gapwxIlkJjEkhvuIR4jO5hkNRZp8dySdsd1Cb4/ecXkMChlc429Q9qW8qbwy6RQ==","signatures":[{"sig":"MEUCIQCbPcdeiR6266Rgb8O21GRAgzZ+7X9HcZBkSSSWwI35dQIgYXLPgi9735x32G1YrNZyB3mmco1iEW+GgCAZg3/GU9I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/striptags.js","_from":".","_shasum":"763e534338d9cf542f004a4b1eb099e32d295e44","gitHead":"94ceaf6dc5df7c51c0890b072ff1e60e1bc90a82","scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.5.2","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"4.2.6","devDependencies":{"mocha":"^3.2.0","istanbul":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/striptags-3.1.0.tgz_1503720033321_0.7277807681821287","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"striptags","version":"3.1.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@3.1.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"c8c3e7fdd6fb4bb3a32a3b752e5b5e3e38093ebd","tarball":"https://registry.npmjs.org/striptags/-/striptags-3.1.1.tgz","integrity":"sha512-3HVl+cOkJOlNUDAYdoCAfGx/fzUzG53YvJAl3RYlTvAcBdPqSp1Uv4wrmHymm7oEypTijSQqcqplW8cz0/r/YA==","signatures":[{"sig":"MEUCIF/OTGISR4LltosKN2qRMujCP9gmyixnax5MLfoEwYI2AiEAldWDY34XacMECA81NW6N/QVIUuCdtiytPUqhb9W3yDg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/striptags.js","_from":".","_shasum":"c8c3e7fdd6fb4bb3a32a3b752e5b5e3e38093ebd","gitHead":"127f2fbb585228b5a900a71abe7337b0a38699c8","scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"typings":"index.d.ts","_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"3.5.2","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"4.2.6","devDependencies":{"mocha":"^3.2.0","istanbul":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/striptags-3.1.1.tgz_1512186908266_0.824469706043601","host":"s3://npm-registry-packages"}},"4.0.0-alpha.0":{"name":"striptags","version":"4.0.0-alpha.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@4.0.0-alpha.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"c21a9eb5fec81b09b8e76a4f6ee168a04a1fe30b","tarball":"https://registry.npmjs.org/striptags/-/striptags-4.0.0-alpha.0.tgz","fileCount":11,"integrity":"sha512-rbewxpe+S5ZTph40TZmfxFHJ3soxwU9PRG7lbl1jbe3Pa1IjkzFh6TLe+zqUL40aPxjseTdTiBtS5YUGaNLN+Q==","signatures":[{"sig":"MEUCIHVo7+H+HHZ9meB/96+gajOM+2J2Sxk0uUXT7sFePdBnAiEA81RQB/DPFzS7oXSy5/fai4oH+cM/FmLiOEI3H5t+KRg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfw9J7CRA9TVsSAnZWagAASSQP/iS4+V3sKiyq6j4uUkW5\nrvCHTl7KR1vGDgWZKL2BYOWl514flk8TXtEa0WMWea+aiJGDeTQeH1dlrydC\nRFTHzEuqbZroECNRpuoIuuXnpZrWwA+krBg3b44DwnAKg+q7ngUoxij741W6\ncUmLKm4a5D2C1rkYpmASmMVgtnvryPF9s8qAcBKIKcqDGPUiCJq98U66o9by\nnkyMejlelUsiyNXNGnh3Sh2OyviiK3k/UEvylzukXsrU03Bn2DnwCxdTpa2x\nZX6Oj2g/vm9PTJO39/GYpZ5Z5Vglsl5Ip6/FX6OUsMlhIS3DJOlU5+/J4A76\nlHLvZI0yPvCsDWJZKruYj2xxmVA+odnpd+z33sdCAZvMAhi8+aH6CH07uEC+\n8drg9wDB7sH+BDPKWrjf/p0eABedOSqD2RIsAjcPdkQvGPlZfE6HeOqmKefE\nR/ste3EXayjU9yAEzfm3d9iQslOtf7odDMdEjBPZTvqd2nrErQCK/Qq48wOF\nw1/1tf23dD3AbPZBTmrdgo+TCjMDBgiI3tB+i/A9WVG5/CFBqua2R/uHdJfl\nixYDxYYNHjESK20+rXxuvRhd7XkYTLpJ86d5VawdrH49C9Tf/LxgZn+LBw96\nr7mu0TnctZIE6RLuX3z3FIxzT1qsg2mDeE/kIkrbsBuHEwyn+h5aCivCPld6\nZza+\r\n=0eAV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/striptags.js","types":"dist/es6/striptags.d.ts","module":"dist/es6/striptags.js","readme":"# striptags (WIP)\n\nAn implementation of PHP's [strip_tags](https://www.php.net/manual/en/function.strip-tags.php) in Typescript.\n\n## Highlights\n\n- No dependencies\n- Prevents XSS by default\n\n## Installing\n\n```\nnpm install striptags\n```\n\n## Basic Usage\n\n```typescript\n// commonjs format\nstriptags(text: string, options?: Partial<StateMachineOptions>): string;\n```\n\n### Examples\n\n```javascript\n// commonjs format\nconst striptags = require(\"striptags\").striptags;\n\n// alternatively:\n// import { striptags } from \"striptags\";\n\nvar html = `\n<a href=\"https://example.com\">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>\n`.trim();\n\nconsole.log(striptags(html));\nconsole.log(striptags(html, {allowedTags: new Set([\"strong\"])}));\nconsole.log(striptags(html, {tagReplacementText: \"🍩\"}));\n```\n\nOutputs:\n\n```\nlorem ipsum dolor sit amet\nlorem ipsum <strong>dolor</strong> sit amet\n🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩\n```\n\n## Advanced Usage\n\n```typescript\nclass StateMachine {\n    constructor(partialOptions?: Partial<StateMachineOptions>);\n    consume(text: string): string;\n}\n```\n\nThe `StateMachine` class is similar to the `striptags` function, but persists state across calls to `consume()` so that you may safely pass in a stream of text. For example:\n\n```javascript\nconst StateMachine = require(\"striptags\").StateMachine;\n\n// alternatively:\n// import { StateMachine } from \"striptags\";\n\nconst instance = new StateMachine();\n\nconsole.log(\n  instance.consume(\"some text with <a\") + instance.consume(\"tag>and more text\")\n);\n```\n\nOutputs:\n\n```\nsome text with and more text\n```\n\n## Options\n\n* `allowedTags: Set<string>` a set containing a list of tag names to allow (e.g. `new Set([\"tagname\"])`), default: `new Set([])`.\n* `tagReplacementText: string` a string to use as replacement text when a tag is found and not allowed, default: `\"\"`.\n* `encodePlaintextTagDelimiters: boolean` true if `<` and `>` characters immediately followed by whitespace should be HTML encoded, default: `true`. This is safe to set to `false` if the output is expected to be used only as plaintext.\n","scripts":{"lint":"eslint .","test":"jest","prepublishOnly":"eslint . && rollup -c"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP's strip_tags in Javascript","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) [2020] [Eric Norris]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.6.1","tslib":"^2.0.3","eslint":"^7.14.0","rollup":"^2.33.3","ts-jest":"^26.4.3","prettier":"^2.2.0","typescript":"^4.0.5","@types/jest":"^26.0.15","eslint-plugin-prettier":"^3.1.4","@rollup/plugin-typescript":"^6.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/striptags_4.0.0-alpha.0_1606668923560_0.5479770465853935","host":"s3://npm-registry-packages"}},"4.0.0-alpha.1":{"name":"striptags","version":"4.0.0-alpha.1","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@4.0.0-alpha.1","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"a12911d72a9e6a6468c873e1c65126ee0802d1e6","tarball":"https://registry.npmjs.org/striptags/-/striptags-4.0.0-alpha.1.tgz","fileCount":11,"integrity":"sha512-t4Wdpv8fdNcQVKix0QhUajEO3m5j5DEUNZHnwoLo/NgKF2KwRjsfGeDNB9RzMtQwAwp/1ktGhWdLNvqRujkf0A==","signatures":[{"sig":"MEUCIQDsfMskoWXx510zx1d2W/GSGPVnQmVMbLu4AbOO6nvP3AIgMn+pHopbDlJz+hbJgMow6XTNBTnZMWN9w2awaNSJ3e0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxAdGCRA9TVsSAnZWagAAv/kP/iIpfzMzNJz85A5PCfaW\n/8wNWppAQSy6YoWO+Mofqhv7FLawqi2tRA98xOBvfccg4kdbzhspSQlEj4kL\n+ypejpYNdQVOPOMsA3+9WFHy9YtyiMqLXaCsmjj4Z8xK7kWEl8oAZtTabjiD\nc/OT0RejAY+HEu2b28hwHuA4I8yxrh6G8uLOVePtMpBJki7RKYxGeqL13fxW\nSe+DGBFWx26SNxjKTfpP1YYnUWXDWckUWTzwfCBMEohbfHOTatSYa0+GTupj\nC6Wdlw29cz3hy5ukoeCwzdNdJLwVGKurLEfHj3yEuNnrTh7KsXEmO9lVKcSd\nOsbMKwD6eWMjtAXVooCKBCNmFG30SerqBHZMdcq+fhJW68BsjoYFUKjHfsra\nv4zFSWUM0bPHYRaZS3aMjjB1nGpR2HALT3dLyJsxxpR2vTDjSUMWsTx95n7M\nKBKBe28Z6f0QDkfvwCUUPMwnJGSH5g3K/ZnXl81ON0PfJYryuMMV3fYMauZM\ncsJpEpF48/B8k+q00BlY6MhGf8G1IS4IFH3XTt7YDGKUOtUTFFIZM23otc1I\nl+mq+Ttwpo29MOCFNJ7JEsaFTer9aBjvXtihYSgckWVG5LD2B7+y7sRBsKAh\n+NNngRGabVnHPX+Mp3kqGbWiRTP5rINiXqn9pVbTeMMxZ4xop8DTeQeAs628\nQht1\r\n=5YkW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/striptags.js","types":"dist/es6/striptags.d.ts","module":"dist/es6/striptags.js","readme":"# striptags\n\nAn implementation of PHP's [strip_tags](https://www.php.net/manual/en/function.strip-tags.php) in Typescript.\n\n**Note:** this is a total rewrite from [v3](https://github.com/ericnorris/striptags/tree/v3.x.x), and as such, is currently in an alpha state. Feel free to use this during the alpha period and provide feedback before it is released as v4.\n\n## Highlights\n\n- No dependencies\n- Prevents XSS by default\n\n## Installing\n\n```\nnpm install striptags@alpha\n```\n\n## Basic Usage\n\n```typescript\nstriptags(text: string, options?: Partial<StateMachineOptions>): string;\n```\n\n### Examples\n\n```javascript\n// commonjs\nconst striptags = require(\"striptags\").striptags;\n\n// alternatively, as an es6 import\n// import { striptags } from \"striptags\";\n\nvar html = `\n<a href=\"https://example.com\">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>\n`.trim();\n\nconsole.log(striptags(html));\nconsole.log(striptags(html, { allowedTags: new Set([\"strong\"]) }));\nconsole.log(striptags(html, { tagReplacementText: \"🍩\" }));\n```\n\nOutputs:\n\n```\nlorem ipsum dolor sit amet\nlorem ipsum <strong>dolor</strong> sit amet\n🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩\n```\n\n## Advanced Usage\n\n```typescript\nclass StateMachine {\n    constructor(partialOptions?: Partial<StateMachineOptions>);\n    consume(text: string): string;\n}\n```\n\nThe `StateMachine` class is similar to the `striptags` function, but persists state across calls to `consume()` so that you may safely pass in a stream of text. For example:\n\n```javascript\n// commonjs\nconst StateMachine = require(\"striptags\").StateMachine;\n\n// alternatively, as an es6 import\n// import { StateMachine } from \"striptags\";\n\nconst instance = new StateMachine();\n\nconsole.log(instance.consume(\"some text with <a\") + instance.consume(\"tag>and more text\"));\n```\n\nOutputs:\n\n```\nsome text with and more text\n```\n\n## Safety\n\n`striptags` is safe to use by default; the output is guaranteed to be free of potential XSS vectors if used as text within a tag. **Specifying either `allowedTags` or `disallowedTags` in the options argument removes this guarantee**, however. For example, a malicious user may achieve XSS via an attribute in an allowed tag: `<img onload=\"alert(1);\">`.\n\nIn addition, `striptags` will automatically HTML encode `<` and `>` characters followed by whitespace. While most browsers tested treat `<` or `>` followed by whitespace as a non-tag string, it is safer to escape the characters. You may change this behavior via the `encodePlaintextTagDelimiters` option described below.\n\n## `Partial<StateMachineOptions>`\n\n**`allowedTags?: Set<string>`**\n\nA set containing a list of tag names to allow (e.g. `new Set([\"tagname\"])`). Tags not in this list will be removed. This option takes precedence over the `disallowedTags` option.\n\nDefault: `undefined`\n\n**`disallowedTags?: Set<string>`**\n\nA set containing a list of tag names to disallow ((e.g. `new Set([\"tagname\"])`). Tags not in this list will be allowed. Ignored if `allowedTags` is set.\n\nDefault: `undefined`\n\n**`tagReplacementText?: string`**\n\nA string to use as replacement text when a tag is found and not allowed.\n\nDefault: `\"\"`\n\n**`encodePlaintextTagDelimiters?: boolean`**\n\nSetting this option to true will cause `<` and `>` characters immediately followed by whitespace to be HTML encoded. This is safe to set to `false` if the output is expected to be used only as plaintext (i.e. it will not be displayed alongside other HTML).\n\nDefault: `true`\n","scripts":{"lint":"eslint .","test":"jest","prepublishOnly":"eslint . && rollup -c"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP's strip_tags in Javascript","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) [2020] [Eric Norris]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.6.1","tslib":"^2.0.3","eslint":"^7.14.0","rollup":"^2.33.3","ts-jest":"^26.4.3","prettier":"^2.2.0","typescript":"^4.0.5","@types/jest":"^26.0.15","eslint-plugin-prettier":"^3.1.4","@rollup/plugin-typescript":"^6.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/striptags_4.0.0-alpha.1_1606682437537_0.8603696403633077","host":"s3://npm-registry-packages"}},"4.0.0-alpha.2":{"name":"striptags","version":"4.0.0-alpha.2","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@4.0.0-alpha.2","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"e911eb286a3ca5d0c1d53a8449a1a9e933b1305c","tarball":"https://registry.npmjs.org/striptags/-/striptags-4.0.0-alpha.2.tgz","fileCount":11,"integrity":"sha512-KM2d9idEHtI4961q0UC67uIoNAuRpKh4Asjkjhw/QzXPwQlgEOcmBuP+pw2fTZpqnL2VYc7wUX0xJN/zKvXwWQ==","signatures":[{"sig":"MEQCICErps+NjaC/r8+idVk+DhmIN2tkqdzY2ylZXnE3xJWaAiBw/3EKV+OeqNk4u73gjGUTi/XBrY2IkM9+yt4gnlU+Vw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxFSvCRA9TVsSAnZWagAAUTsP/2OegBfDlAbW8mGZE4vl\nL8Nv/9CYmJ8L133wiMf2qGAjGz3rzAjSM9YaIiPEh35tt5j+otWpjoLDO8XD\nUzbvRMTUY6NSgl3MnpJPIUKXCMz5/gV4r1/FlSfyVz1RPAOGd0xvmTMjG56d\nAl574V+EMHjz79pb1ce6yxl1xTj4cYz/3MVlOZ8iiIfyjvFwZEvSsBjXvims\nCEKjPOivEnnNQkNy1J/m3/ifHVteRErPZnD1Pa98rMFKnCn/rcvADL09JAbU\nOUU9SnPmDALJmTuLGmlSrDJkJmt1aloaWuaA1T7qGCWhnoViP8f6X4dXM8ak\ns+wjn8PPn9tqHRJbDw7DyuOOU58ClcFu5tbeLX/rEMtbg5bLyK1ZqdbWX1mF\nVEr0m4Z5xnDL3Pe4G3tDuZHrZmg3TqdUyPn5y+TJQe3DBbouxlGiAsOtTPoj\nNPujFzSsI2TAiS76zCY2R2lzKVL5N4WkblDsDp2sXjyp5JE2S+gcA3eVNoK/\nCskSZTx38nqxq5DUhiAIAQ1JMR66YHhEQCyhnky4QLIyGSEI1/sOsLSZAcje\n9R2inwI/bsY09no9rvsG+GU5edfsJWVowwLxNrZHaHmV60c77gGhJ73Srtdy\nnwbZmk5MeKZCyUmh+qR2PRHOrMWR8KFlsxTq2d31Q1loP04Pp29EK2PGFkDf\nwTaL\r\n=c5sS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/striptags.js","types":"dist/es6/striptags.d.ts","module":"dist/es6/striptags.js","readme":"# striptags\n\nAn implementation of PHP's [strip_tags](https://www.php.net/manual/en/function.strip-tags.php) in Typescript.\n\n**Note:** this is a total rewrite from [v3](https://github.com/ericnorris/striptags/tree/v3.x.x), and as such, is currently in an alpha state. Feel free to use this during the alpha period and provide feedback before it is released as v4.\n\n## Highlights\n\n- No dependencies\n- Prevents XSS by default\n\n## Installing\n\n```\nnpm install striptags@alpha\n```\n\n## Basic Usage\n\n```typescript\nstriptags(text: string, options?: Partial<StateMachineOptions>): string;\n```\n\n### Examples\n\n```javascript\n// commonjs\nconst striptags = require(\"striptags\").striptags;\n\n// alternatively, as an es6 import\n// import { striptags } from \"striptags\";\n\nvar html = `\n<a href=\"https://example.com\">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>\n`.trim();\n\nconsole.log(striptags(html));\nconsole.log(striptags(html, { allowedTags: new Set([\"strong\"]) }));\nconsole.log(striptags(html, { tagReplacementText: \"🍩\" }));\n```\n\nOutputs:\n\n```\nlorem ipsum dolor sit amet\nlorem ipsum <strong>dolor</strong> sit amet\n🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩\n```\n\n## Advanced Usage\n\n```typescript\nclass StateMachine {\n    constructor(partialOptions?: Partial<StateMachineOptions>);\n    consume(text: string): string;\n}\n```\n\nThe `StateMachine` class is similar to the `striptags` function, but persists state across calls to `consume()` so that you may safely pass in a stream of text. For example:\n\n```javascript\n// commonjs\nconst StateMachine = require(\"striptags\").StateMachine;\n\n// alternatively, as an es6 import\n// import { StateMachine } from \"striptags\";\n\nconst instance = new StateMachine();\n\nconsole.log(instance.consume(\"some text with <a\") + instance.consume(\"tag>and more text\"));\n```\n\nOutputs:\n\n```\nsome text with and more text\n```\n\n## Safety\n\n`striptags` is safe to use by default; the output is guaranteed to be free of potential XSS vectors if used as text within a tag. **Specifying either `allowedTags` or `disallowedTags` in the options argument removes this guarantee**, however. For example, a malicious user may achieve XSS via an attribute in an allowed tag: `<img onload=\"alert(1);\">`.\n\nIn addition, `striptags` will automatically HTML encode `<` and `>` characters followed by whitespace. While most browsers tested treat `<` or `>` followed by whitespace as a non-tag string, it is safer to escape the characters. You may change this behavior via the `encodePlaintextTagDelimiters` option described below.\n\n## `Partial<StateMachineOptions>`\n\n**`allowedTags?: Set<string>`**\n\nA set containing a list of tag names to allow (e.g. `new Set([\"tagname\"])`). Tags not in this list will be removed. This option takes precedence over the `disallowedTags` option.\n\nDefault: `undefined`\n\n**`disallowedTags?: Set<string>`**\n\nA set containing a list of tag names to disallow ((e.g. `new Set([\"tagname\"])`). Tags not in this list will be allowed. Ignored if `allowedTags` is set.\n\nDefault: `undefined`\n\n**`tagReplacementText?: string`**\n\nA string to use as replacement text when a tag is found and not allowed.\n\nDefault: `\"\"`\n\n**`encodePlaintextTagDelimiters?: boolean`**\n\nSetting this option to true will cause `<` and `>` characters immediately followed by whitespace to be HTML encoded. This is safe to set to `false` if the output is expected to be used only as plaintext (i.e. it will not be displayed alongside other HTML).\n\nDefault: `true`\n","scripts":{"lint":"eslint .","test":"jest","prepublishOnly":"eslint . && rollup -c"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP's strip_tags in Javascript","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) [2020] [Eric Norris]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.6.1","tslib":"^2.0.3","eslint":"^7.14.0","rollup":"^2.33.3","ts-jest":"^26.4.3","prettier":"^2.2.0","typescript":"^4.0.5","@types/jest":"^26.0.15","eslint-plugin-prettier":"^3.1.4","@rollup/plugin-typescript":"^6.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/striptags_4.0.0-alpha.2_1606702254952_0.9961282861163099","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"striptags","version":"3.2.0","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@3.2.0","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"cc74a137db2de8b0b9a370006334161f7dd67052","tarball":"https://registry.npmjs.org/striptags/-/striptags-3.2.0.tgz","fileCount":8,"integrity":"sha512-g45ZOGzHDMe2bdYMdIvdAfCQkCTDMGBazSw1ypMowwGIee7ZQ5dU0rBJ8Jqgl+jAKIv4dbeE1jscZq9wid1Tkw==","signatures":[{"sig":"MEYCIQCNcmH2Xysn+4PYijqoaiGxuJ+UgWUY2UlkjmMBCkp5dwIhAJ+zonwnCM32BYZ8s5CJWri/8naDgNG1jFIyQIUrP+GH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzNODCRA9TVsSAnZWagAAO1gP/j0fhmHLHCXB5oZGJ81Z\ndiNwbX8D4ugZvv4VDLu9tzxwffzCtmt9AYmhQ4fBUuRpAN87oiXjkD6GRquT\nZ3IienYJqwdSHRdNZWUPINO2BHf1dVOL7R5ONweikn3QpbEehFH8YeUeRJWN\nI645xIxvkthAy8DOwJEH8JXT2Tqn2ychkfR+DHaZeACDs2JFmUxx5AYLzhg5\na52bryGoqOpcnHHFYNzcmk3RmSR277dmPpVfg2eDApof265OL89nORjtkORt\nr+ojko8JOqN5kHH2fsUI1ZpLGBdb5xn/LacMtzAEmZBLsEipHrhkpaw9UB1l\n8w1iy8j6OYrqiJehsEuYicutp2DTux3dS5X5brX2t7alZjQ4sNq9KdxoJhc9\nwJd9hgTOBHP1vZ1EYO0vx8IiVZBMlz0B3pjp+7ZP4RKGn/scNW/Q5/Rw0mMR\nGDeWxXxkz9gEDR9wP79qebd7gybdc2PHrU4dtiwgjKCC7EDebo7pHDCNPgEb\nHOQHUUZJz05nO2fJ3+0wTGMAwz+vRAPyvvttOG5HhWEFJ5OvCBcmyjP7cG5t\nK+SCYPjKNuyYSh/Prk1353BV/tHY9kXA4GCpN/zMb06XWxnNPyZ5aM7n2GgW\n/mpk+V8oJdCexrS8FzeHKvBb7GL/Nec4qV0rnwHqWulxrFsllPkY23whSlmy\nIj8+\r\n=4HhY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/striptags.js","gitHead":"f252a6b0819499cd65403707ebaf5cc925f2faca","scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"typings":"index.d.ts","_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"_npmVersion":"6.14.12","description":"PHP strip_tags in Node.js","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^3.2.0","istanbul":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/striptags_3.2.0_1624036226721_0.5287262120971976","host":"s3://npm-registry-packages"}},"4.0.0-alpha.3":{"name":"striptags","version":"4.0.0-alpha.3","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@4.0.0-alpha.3","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"0694c362e59b2300f2f4a60d7a33e27b278fc4fc","tarball":"https://registry.npmjs.org/striptags/-/striptags-4.0.0-alpha.3.tgz","fileCount":11,"integrity":"sha512-hWjyXNQuVstJghhRAVYurr2KhDHu/QDFFIMo6+uitRk3IV8nHjMPxwAFlUFYm3zNd+7Om7m/CVYCHeP9td4weQ==","signatures":[{"sig":"MEUCIQDuf86RdovA6sxWxyERsYxl/Slz5ZzcSbtUZar4P8cwCAIgIv/3UFfTbmK8lNtFJJjNqGKNlwTaWHgAFu8YQi12VkI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJxPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruIg/5AJdvGjZhlT8NC1L0hEddXfrO5oqmvymlcOQkdlWYBNjzWSKo\r\nMPQPhCYP8Rk1y2H5wRlyeal5qH2TzhFGL2OkzrYaZX+kLBRSth/xntjO33K2\r\nmw+j5kfamrFYxI+8DlcfoBZeEbEIhFfxxZ0BReJrUvjQb46owDTKENvrVnmz\r\nX7PsWdNjDEAmifqwfs/JaYKrabb1I2mEKZAcnlGEG+Ex1g80QdzYyOjACPpE\r\nCMz+Cz7S+PGztj5IV3JS4ZS0sX3c0byMer2ObMgUX1x4Yt3xxVNOuyA4YOpO\r\nHFeUPH/aLcn32cIbw8oceV0JM8m9vaNk+UR0ORJKUR1vfZn3slTaVNnhjrJi\r\nVHvxu3hgHV2tOrzDDd2xKNIvGXTxvbj1yUhF0r3LLO+UJdjNdmGHCF48Nqvc\r\nSinz/2OPm0Q2hKTSPhp9/m7q9IsUex+dMegYX5xF2Bt64WsOYHSnJLpXpVj9\r\nVeuXVb+PTOe2D9VXbm+NRdWChl0emgY4SbPgJPpbPi0XxibWOE22hfKNM4qE\r\nEj6ZJbXX1ctmgD9eKgjrkqwvqqWxzuTeO33lsR4M2HD6t+dWAIlszZK0Gdll\r\nbOoTGLV9lfZc3QZCVeXfHYEvVOkIQorlWKL1c1Oak3I3V2fRSYnJHUY1y2VT\r\n2pcCtsESvO3Is58UDFep5eOyzLXZdr0d0W8=\r\n=q4IT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/striptags.js","types":"dist/es6/striptags.d.ts","module":"dist/es6/striptags.js","readme":"# striptags\n\nAn implementation of PHP's [strip_tags](https://www.php.net/manual/en/function.strip-tags.php) in Typescript.\n\n**Note:** this is a total rewrite from [v3](https://github.com/ericnorris/striptags/tree/v3.x.x), and as such, is currently in an alpha state. Feel free to use this during the alpha period and provide feedback before it is released as v4.\n\n## Highlights\n\n- No dependencies\n- Prevents XSS by default\n\n## Installing\n\n```\nnpm install striptags@alpha\n```\n\n## Basic Usage\n\n```typescript\nstriptags(text: string, options?: Partial<StateMachineOptions>): string;\n```\n\n### Examples\n\n```javascript\n// commonjs\nconst striptags = require(\"striptags\").striptags;\n\n// alternatively, as an es6 import\n// import { striptags } from \"striptags\";\n\nvar html = `\n<a href=\"https://example.com\">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>\n`.trim();\n\nconsole.log(striptags(html));\nconsole.log(striptags(html, { allowedTags: new Set([\"strong\"]) }));\nconsole.log(striptags(html, { tagReplacementText: \"🍩\" }));\n```\n\nOutputs:\n\n```\nlorem ipsum dolor sit amet\nlorem ipsum <strong>dolor</strong> sit amet\n🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩\n```\n\n## Advanced Usage\n\n```typescript\nclass StateMachine {\n    constructor(partialOptions?: Partial<StateMachineOptions>);\n    consume(text: string): string;\n}\n```\n\nThe `StateMachine` class is similar to the `striptags` function, but persists state across calls to `consume()` so that you may safely pass in a stream of text. For example:\n\n```javascript\n// commonjs\nconst StateMachine = require(\"striptags\").StateMachine;\n\n// alternatively, as an es6 import\n// import { StateMachine } from \"striptags\";\n\nconst instance = new StateMachine();\n\nconsole.log(instance.consume(\"some text with <a\") + instance.consume(\"tag>and more text\"));\n```\n\nOutputs:\n\n```\nsome text with and more text\n```\n\n## Safety\n\n`striptags` is safe to use by default; the output is guaranteed to be free of potential XSS vectors if used as text within a tag. **Specifying either `allowedTags` or `disallowedTags` in the options argument removes this guarantee**, however. For example, a malicious user may achieve XSS via an attribute in an allowed tag: `<img onload=\"alert(1);\">`.\n\nIn addition, `striptags` will automatically HTML encode `<` and `>` characters followed by whitespace. While most browsers tested treat `<` or `>` followed by whitespace as a non-tag string, it is safer to escape the characters. You may change this behavior via the `encodePlaintextTagDelimiters` option described below.\n\n## `Partial<StateMachineOptions>`\n\n**`allowedTags?: Set<string>`**\n\nA set containing a list of tag names to allow (e.g. `new Set([\"tagname\"])`). Tags not in this list will be removed. This option takes precedence over the `disallowedTags` option.\n\nDefault: `undefined`\n\n**`disallowedTags?: Set<string>`**\n\nA set containing a list of tag names to disallow ((e.g. `new Set([\"tagname\"])`). Tags not in this list will be allowed. Ignored if `allowedTags` is set.\n\nDefault: `undefined`\n\n**`tagReplacementText?: string`**\n\nA string to use as replacement text when a tag is found and not allowed.\n\nDefault: `\"\"`\n\n**`encodePlaintextTagDelimiters?: boolean`**\n\nSetting this option to true will cause `<` and `>` characters immediately followed by whitespace to be HTML encoded. This is safe to set to `false` if the output is expected to be used only as plaintext (i.e. it will not be displayed alongside other HTML).\n\nDefault: `true`\n","scripts":{"lint":"eslint .","test":"jest","prepublishOnly":"eslint . && rollup -c"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP's strip_tags in Javascript","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) [2020] [Eric Norris]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.6.1","tslib":"^2.0.3","eslint":"^7.14.0","rollup":"^2.33.3","ts-jest":"^26.4.3","prettier":"^2.2.0","typescript":"^4.0.5","@types/jest":"^26.0.15","eslint-plugin-prettier":"^3.1.4","@rollup/plugin-typescript":"^6.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/striptags_4.0.0-alpha.3_1664916559473_0.6386666332951627","host":"s3://npm-registry-packages"}},"4.0.0-alpha.4":{"name":"striptags","version":"4.0.0-alpha.4","keywords":["striptags","strip_tags","html","strip","tags"],"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","_id":"striptags@4.0.0-alpha.4","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"homepage":"https://github.com/ericnorris/striptags","bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"dist":{"shasum":"824f1ac040f824574316ce87a3663c0c4df9900d","tarball":"https://registry.npmjs.org/striptags/-/striptags-4.0.0-alpha.4.tgz","fileCount":12,"integrity":"sha512-/0jWyVWhpg9ciRHfjKYBpMHXct/HrFRfsR2HU77nGPbc8SPcVSIHZlZR/0TG3MyPq2C+HiHuwx8BlbcdI/cNbw==","signatures":[{"sig":"MEUCIQDbvrqgMp1MQopSw8NWwN/3qAqY2K1eXV/dGHPBRLoeCwIgZyMxWdU1gLz3YTV1Gt04iKkaTagZy08xnyAWmg4T3G4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPKzrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzFw//TINUKuGy/K2PSDRpPVjKHH8A39qXfQjFl1ucw40tI6wapA27\r\n9H9nS6XItn1AqGhNZTBkziN26vEfBi/gDNjY/JUt5fGv9SlTFx+KGQ3cyrNm\r\nIZIbt8Q1n6vxXapmiQAQhLZGb/Bi968NBr0r7/YfLXBTxqyWoojx4a3lz3O5\r\n1FRY78N6Z9V08tYngPb/xNPXaemvHGDCzrgM++feINCm0xPFPKxOyM1jV9rz\r\n8hH5qZeqafIqnoIXdrpnWrTCcFN6aIOrQ3pfIma7S/P1VXNblC8GzOhm7wZE\r\nzk7IIjuC2ZJUH1VRH2RdzSXMS+6EC/oS14ZSx7QYtZnq7cX3fQDcFuaUZNG+\r\ncWXa+VFCrxBHvrq+P0aNyoNVDecVbbp3NPkp4kvi+dW1iOsfaCE4FuadVmq8\r\nhKBygpjkz8XqespWkcOFtDEIWZT3SeGCZhaGZKh2aEPnO5oBxzzyxwrWDp88\r\n1WFkteVe7hnKfnus0UoBMEDztPginPyHKEMm90KDScyv1YRhHz08pnCV7D1v\r\nyiaIKNuqIWlZqhCgrZA1M9pWRW9g+V0e2TNma6lXohSuYKTT1SW51ZX6iwWJ\r\nkkKl7WyLL4OrCWbWIiMk/8taBxesRDEI0wo89b+yZp47CGwrY2vEBrdCV/MK\r\nrBgP8Pdm16KP3LkaViX31n8TfJyDlvi09CI=\r\n=Rnim\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/striptags.js","type":"module","types":"dist/es6/striptags.d.ts","readme":"# striptags\n\nAn implementation of PHP's [strip_tags](https://www.php.net/manual/en/function.strip-tags.php) in Typescript.\n\n**Note:** this is a total rewrite from [v3](https://github.com/ericnorris/striptags/tree/v3.x.x), and as such, is currently in an alpha state. Feel free to use this during the alpha period and provide feedback before it is released as v4.\n\n## Highlights\n\n- No dependencies\n- Prevents XSS by default\n\n## Installing\n\n```\nnpm install striptags@alpha\n```\n\n## Basic Usage\n\n```typescript\nstriptags(text: string, options?: Partial<StateMachineOptions>): string;\n```\n\n### Examples\n\n```javascript\n// commonjs\nconst striptags = require(\"striptags\").striptags;\n\n// alternatively, as an es6 import\n// import { striptags } from \"striptags\";\n\nvar html = `\n<a href=\"https://example.com\">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>\n`.trim();\n\nconsole.log(striptags(html));\nconsole.log(striptags(html, { allowedTags: new Set([\"strong\"]) }));\nconsole.log(striptags(html, { tagReplacementText: \"🍩\" }));\n```\n\nOutputs:\n\n```\nlorem ipsum dolor sit amet\nlorem ipsum <strong>dolor</strong> sit amet\n🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩\n```\n\n## Advanced Usage\n\n```typescript\nclass StateMachine {\n    constructor(partialOptions?: Partial<StateMachineOptions>);\n    consume(text: string): string;\n}\n```\n\nThe `StateMachine` class is similar to the `striptags` function, but persists state across calls to `consume()` so that you may safely pass in a stream of text. For example:\n\n```javascript\n// commonjs\nconst StateMachine = require(\"striptags\").StateMachine;\n\n// alternatively, as an es6 import\n// import { StateMachine } from \"striptags\";\n\nconst instance = new StateMachine();\n\nconsole.log(instance.consume(\"some text with <a\") + instance.consume(\"tag>and more text\"));\n```\n\nOutputs:\n\n```\nsome text with and more text\n```\n\n## Safety\n\n`striptags` is safe to use by default; the output is guaranteed to be free of potential XSS vectors if used as text within a tag. **Specifying either `allowedTags` or `disallowedTags` in the options argument removes this guarantee**, however. For example, a malicious user may achieve XSS via an attribute in an allowed tag: `<img onload=\"alert(1);\">`.\n\nIn addition, `striptags` will automatically HTML encode `<` and `>` characters followed by whitespace. While most browsers tested treat `<` or `>` followed by whitespace as a non-tag string, it is safer to escape the characters. You may change this behavior via the `encodePlaintextTagDelimiters` option described below.\n\n## `Partial<StateMachineOptions>`\n\n**`allowedTags?: Set<string>`**\n\nA set containing a list of tag names to allow (e.g. `new Set([\"tagname\"])`). Tags not in this list will be removed. This option takes precedence over the `disallowedTags` option.\n\nDefault: `undefined`\n\n**`disallowedTags?: Set<string>`**\n\nA set containing a list of tag names to disallow ((e.g. `new Set([\"tagname\"])`). Tags not in this list will be allowed. Ignored if `allowedTags` is set.\n\nDefault: `undefined`\n\n**`tagReplacementText?: string`**\n\nA string to use as replacement text when a tag is found and not allowed.\n\nDefault: `\"\"`\n\n**`encodePlaintextTagDelimiters?: boolean`**\n\nSetting this option to true will cause `<` and `>` characters immediately followed by whitespace to be HTML encoded. This is safe to set to `false` if the output is expected to be used only as plaintext (i.e. it will not be displayed alongside other HTML).\n\nDefault: `true`\n","exports":{"types":"./dist/es6/striptags.d.ts","import":"./dist/es6/striptags.js","require":"./dist/cjs/striptags.cjs"},"scripts":{"lint":"eslint .","test":"jest","prepublishOnly":"eslint . && rollup -c"},"_npmUser":{"name":"ericnorris","email":"erictnorris@gmail.com"},"repository":{"url":"https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP's strip_tags in Javascript","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) [2020] [Eric Norris]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.6.1","tslib":"^2.0.3","eslint":"^7.14.0","rollup":"^2.33.3","ts-jest":"^26.4.3","prettier":"^2.2.0","typescript":"^4.0.5","@types/jest":"^26.0.15","eslint-plugin-prettier":"^3.1.4","@rollup/plugin-typescript":"^6.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/striptags_4.0.0-alpha.4_1664920811153_0.983723319417027","host":"s3://npm-registry-packages"}}},"time":{"created":"2014-06-30T14:25:57.369Z","modified":"2026-06-29T09:00:00.864Z","1.0.0":"2014-06-30T14:25:57.369Z","2.0.0":"2015-01-17T21:54:53.275Z","2.0.1":"2015-01-31T05:16:12.603Z","2.0.2":"2015-04-22T03:59:34.718Z","2.0.3":"2015-08-27T01:03:24.641Z","2.0.4":"2015-10-12T14:06:51.265Z","2.1.0":"2016-01-02T01:29:21.126Z","2.1.1":"2016-01-06T03:07:18.565Z","2.2.0":"2017-01-18T05:21:53.331Z","2.2.1":"2017-01-18T12:49:58.555Z","3.0.0":"2017-02-01T05:05:50.960Z","3.0.1":"2017-02-05T00:17:00.736Z","3.1.0":"2017-08-26T04:00:35.466Z","3.1.1":"2017-12-02T03:55:09.233Z","4.0.0-alpha.0":"2020-11-29T16:55:23.697Z","4.0.0-alpha.1":"2020-11-29T20:40:37.705Z","4.0.0-alpha.2":"2020-11-30T02:10:55.094Z","3.2.0":"2021-06-18T17:10:26.822Z","4.0.0-alpha.3":"2022-10-04T20:49:19.722Z","4.0.0-alpha.4":"2022-10-04T22:00:11.348Z"},"bugs":{"url":"https://github.com/ericnorris/striptags/issues"},"author":{"url":"https://github.com/ericnorris","name":"Eric Norris"},"license":"MIT","homepage":"https://github.com/ericnorris/striptags","keywords":["striptags","strip_tags","html","strip","tags"],"repository":{"url":"git+https://github.com/ericnorris/striptags.git","type":"git"},"description":"PHP strip_tags in Node.js","maintainers":[{"name":"ericnorris","email":"erictnorris@gmail.com"}],"readme":"","readmeFilename":"","users":{"japh":true,"subei":true,"beytek":true,"mahfuz":true,"kevinto":true,"lwdthe1":true,"akamaozu":true,"wangfeia":true,"rchiniquy":true,"stretchgz":true,"princetoad":true,"shreyawhiz":true,"makenowjust":true,"darrentorpey":true,"jacobmischka":true,"softdev-zeus":true,"parkerproject":true,"patrickbeeson":true,"jakub.knejzlik":true,"thewoolsinator":true,"yasuskobayashi":true,"segmentationfaulter":true}}