Comments (3)
You have text with all HTML entities encoded/escaped.
You need to find any other way to decode HTML entities first to get the HTML.
There are many ways to do this task, I won't be choosing any specific one for you.
The fact that calling convert
twice does work is a byproduct of it also decoding HTML entities by default.
from node-html-to-text.
Okay thank you, I'll just call it twice then for simplicity.
from node-html-to-text.
Yes, this might work fine, as long as you don't care about some performance overhead.
from node-html-to-text.
Related Issues (20)
- Using in a React Native app HOT 8
- Load HTML to TEXT on a html file, without node and without composer. HOT 3
- Get data in blocks HOT 4
- converting html fails HOT 2
- To ignore everything in footer HOT 4
- Encoding issue HOT 1
- Scraper options selector skip doesnt work HOT 2
- h1 and P are conflicting HOT 2
- how to convert url to markdown ? HOT 5
- tableToString(rows, formatOptions.rowSpacing ?? 0, formatOptions.colSpacing ?? 3), Unexpected token '?' HOT 2
- Is there a way to not parse images? HOT 1
- ul tag without text wrap HOT 2
- I can't use unorderedListItemPrefix for orderedList HOT 2
- Named export 'render' not found HOT 4
- TypeError: htmlToText.fromString is not a function HOT 5
- Cannot remove newlines between tags even with options HOT 1
- add typescript and support esm HOT 2
- Issue with selector: "*" HOT 2
- Convert a table into a markdown compatible table HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-html-to-text.