https://github.com/jsreport/jsreport-html-to-text
jsreport recipe converting html to text
https://github.com/jsreport/jsreport-html-to-text
Last synced: about 1 year ago
JSON representation
jsreport recipe converting html to text
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-html-to-text
- Owner: jsreport
- License: lgpl-3.0
- Created: 2015-06-22T16:35:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:39:02.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T11:43:34.402Z (about 1 year ago)
- Language: JavaScript
- Size: 282 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-html-to-text
jsreport recipe transforming html to text using node package [html-to-text](https://github.com/werk85/node-html-to-text). See the docs https://jsreport.net/learn/html-to-text
## Installation
> **npm install jsreport-html-to-text**
## Usage
To use `recipe` in for template rendering set `template.recipe=html-to-text` in the rendering request.
```js
{
template: { content: '...', recipe: 'html-to-text', engine: '...' }
}
```
## jsreport-core
You can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)
```js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-html-to-text')())
```