Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SearchDocument.php #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ethanjohnstone
Copy link

Shifting further up so it doesn't immediately overwrite what is now line 170 if nodes was of length 0

Shifting further up so it doesn't immediately overwrite what is now line 170 if nodes was of length 0
@@ -164,10 +164,11 @@ protected function searchXPath($xPath, $html)
foreach ($nodes as $node) {
$nodeValues[] = $node->nodeValue;
}

$contents = implode("\n\n", $nodeValues);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethanjohnstone it'd be nice to stripe tags as well ?

Copy link
Author

@ethanjohnstone ethanjohnstone Oct 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fonsekaean Would you want that as part of this PR or should I open a separate one for it?
PS. Any chance you could add the Hacktober tag to the repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants