I'm looking for memory efficient HTML-to-text converted similar to html2text
CLI, however the problem which I've experienced is that it takes too much memory on large files.
For example it can take 3GB of memory for 300MB long HTML file (which consist only long table) so it gets killed by kernel:
Jan 9 00:42:16 kernel: Out of memory in UB 191: OOM killed process 27293 (html2text) score 0 vm:3075332kB, rss:1818104kB, swap:993020kB
Jan 9 00:42:48 kernel: Out of memory in UB 191: OOM killed process 27313 (html2text) score 0 vm:3074540kB, rss:2046032kB, swap:764368kB
Jan 9 01:07:02 kernel: Out of memory in UB 191: OOM killed process 28130 (html2text) score 0 vm:3073220kB, rss:1841448kB, swap:967648kB
Jan 9 01:07:33 kernel: Out of memory in UB 191: OOM killed process 535720 (html2text) score 0 vm:3072560kB, rss:2047284kB, swap:761080kB
Is there any alternative more efficient tool for such conversion?