@jsreport/jsreport-html-to-text
v4.2.0
Published
jsreport recipe converting html into text
Downloads
243
Readme
@jsreport/jsreport-html-to-text
jsreport recipe transforming html to text using node package html-to-text. See the docs https://jsreport.net/learn/html-to-text
Installation
npm install @jsreport/jsreport-html-to-text
Usage
To use recipe
in for template rendering set template.recipe=html-to-text
in the rendering request.
{
template: { content: '...', recipe: 'html-to-text', engine: '...' }
}
jsreport-core
You can apply this extension also manually to jsreport-core
const jsreport = require('@jsreport/jsreport-core')()
jsreport.use(require('@jsreport/jsreport-html-to-text')())