Hi! How can i counting the words in a html page, with domDocument?
for example, if the input is something like:
<div> Hello something open. <a href="open.php">click</a>
lorem ipsum <a href="open.php">here></a>
the output:
Number Word
1 Hello
2 something
3 open
4 click
5 lorem
6 ipsum
7 here.
And what if i need only the linktext?
click 4
here 7