node-html-to-text icon indicating copy to clipboard operation
node-html-to-text copied to clipboard

Get text of elem from within formatters function

Open NTass02 opened this issue 10 months ago • 1 comments

I'd like to get at the text that is parsed for each element. I have a formatter function for format: a and format: *. I want to be able to get the text that is walked from within the function. How do I do so? I thought I could do text = walk(elem.children, builder), but it keeps coming back undefined.

NTass02 avatar Dec 17 '24 00:12 NTass02