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

Emty cells in table #33

Open
sptik12 opened this issue Mar 21, 2023 · 0 comments
Open

Emty cells in table #33

sptik12 opened this issue Mar 21, 2023 · 0 comments

Comments

@sptik12
Copy link

sptik12 commented Mar 21, 2023

Hello, thank you for your work.

Let's assume the following html.

2443 3435345

$doc = new \nokogiri($htmlContent);
$doc->get('td')->toTextArray();

As a result I got an error with two items only, empty td is not included into result array.
I tried $doc->get('td, td:empty') but it didn't help.

Is it possible to make some changes to got an array with this item and
[#text] value equal null or emty?

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

No branches or pull requests

1 participant