Skip to content

Emty cells in table #33

@sptik12

Description

@sptik12

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions