Rusty Well-Known Member Licensed User Longtime User Jan 27, 2021 #1 I have the MiniHTMLParser parsing nodes very well within a class. I can get the text, but would like to get the Node HTML along with the text. is this possible? If so, how might this be done? Is there a "getHTML" or other named method?
I have the MiniHTMLParser parsing nodes very well within a class. I can get the text, but would like to get the Node HTML along with the text. is this possible? If so, how might this be done? Is there a "getHTML" or other named method?
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2021 #2 MiniHtmlParser doesn't store the elements indices in the original text. It shouldn't be too difficult to add it yourself. Add StartIndex and EndIndex to HtmlNode type and change CreateHtmlAttribute to accept the starting index. You also need to modify CloseElement and store the end index. Upvote 0
MiniHtmlParser doesn't store the elements indices in the original text. It shouldn't be too difficult to add it yourself. Add StartIndex and EndIndex to HtmlNode type and change CreateHtmlAttribute to accept the starting index. You also need to modify CloseElement and store the end index.
Rusty Well-Known Member Licensed User Longtime User Jan 27, 2021 #3 Thanks Erel, I did this (or rather am doing this) but can't find the library B4XSet. Can you please point me in the right direction? Never mind, I found it in B4xCollections Upvote 0
Thanks Erel, I did this (or rather am doing this) but can't find the library B4XSet. Can you please point me in the right direction? Never mind, I found it in B4xCollections
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2021 #4 Tip: open manifest.txt and you will see which libraries are required. Upvote 0