Closed tcheukueppo closed 1 year ago
Please don't combine multiple independent changes into a single PR. It lowers the chances of it being accepted significantly. Keep it to one commit per PR.
Sorry, I think it is the perltidy, let me undo that.
I specifically meant that adding each_text
and changing the parser regex are unrelated changes.
After performing some tests I think modifying parser regex isn't worth it and thus no PR for that.
done
I don't really see the use of this feature i'm afraid. Maybe some more specific examples for use cases would help.
Really sorry for bothering you guys, I was working on a project and I came across this, I thought that do be useful but turns out that my approach was not the right approach, it is obviously not useful to me now and probably be never useful to anyone out there, I found another technique that did not even required me to monkey_patch anything, thanks for your attention,
Closing this PR.
Hello,
Summary
$dom
method$dom->each_text
: which returns text content of every descendant node in a list.$dom->each_text
.Motivation
I'd like to have this feature to be table to perform context sensitive parsing on the text content of a given tag(with all it descendant in the most frequent cases) without interference with contents of other
tags
(which is something that$dom->all_text
does not provide), I'm totally aware of$dom->text
but that do require me to walk through the $dom data structure and use css selectors which is quite tedious.