node-html-to-text
node-html-to-text copied to clipboard
Advanced html to text converter
I located this module from the Wix node_modules search, and I am not sure how exactly to import this module once it's been installed on my page.
Hello. With this pull request one can provide a function with options (options.skipTags = ) to remove tag-s from resulting text (and / or provide a replacement text aloing with...
Bug: if ordered list or unordered list contains line breaks `` those will be count as list items `` and they cause extra (empty) numbered (or bulleted) items. e.g. `foobar`...
* Resolves https://github.com/werk85/node-html-to-text/issues/147 * When format functions are called internally within formatter.js it is not possible to override the custom logic. This PR changes that functionality and allows users to...
HI I npm html-to-text and import ,but there is an error Cannot resolve module 'fs' in xxxxxx/node_modules/.3.1.0@html-to-text/lib, please help fix it many thanks
Currently it is not possible to override the format for `listItem`, as [lib/formatter.js](https://github.com/werk85/node-html-to-text/blob/master/lib/formatter.js) calls `formatListItem` internally. The only workaround is to override `unorderedList` or `orderedList`
Hi All I've noticed that the resulting text contains '\n' characters as new line characters. Could the formatter be modified the way that it would output environment-specific new line characters...
My text contains some placeholders like `` . These are removed from the processing. Is there a way to preserve this?
Currently, node-html-to-text ignores `video` tags. This PR adds support for `video` tags similar to `img` tags. So if a video is encountered in either of these formats, with a `src`...
Looks like there isn't an option to keep video elements in the text. Love the support for `` elements, would be nice to have similar support for ``.