We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I do this:
var textBody = article.textBody; var content = article.content;
The content turns out to be wrong, but if I change the order the same thing applies to the textBody. You can call only one.
The text was updated successfully, but these errors were encountered:
Same problem. Have you found any solution yet?
Sorry, something went wrong.
In the end, I just imported another module, named html-to-text and used it to get the text. Something like this:
var htmlToText = require('html-to-text'); var html = article.content; var text = htmlToText.fromString(html, { ignoreHref: true, ignoreImage: true });
Nice solution! Thanks dude:)
No branches or pull requests
If I do this:
var textBody = article.textBody;
var content = article.content;
The content turns out to be wrong, but if I change the order the same thing applies to the textBody. You can call only one.
The text was updated successfully, but these errors were encountered: