fastify-strip-html
A plugin to automatically strip HTML tags from response payload
Install
$ npm i --save fastify-strip-html
Usage
fastify // To test it manually: console // <a>Hello World</a> -> Hello World
Options
Name | Description |
---|---|
stripFromResponse |
Register a onSend hook to strip HTML tags out from a string payload. |
Test
$ npm test
Acknowledgements
This project is kindly sponsored by:
License
Licensed under MIT